merge modal location
This commit is contained in:
@@ -180,6 +180,7 @@ private struct LeftPane: View {
|
||||
|
||||
private struct TaskPane: View {
|
||||
@Environment(Store.self) private var store
|
||||
@Environment(Overlays.self) private var overlays
|
||||
@ViewState private var seen: Set<String> = []
|
||||
|
||||
var body: some View {
|
||||
@@ -198,6 +199,11 @@ private struct TaskPane: View {
|
||||
} action: { frame in
|
||||
store.paneFocus.setFrame(frame)
|
||||
}
|
||||
.onGeometryChange(for: CGRect.self) { g in
|
||||
g.frame(in: .named("window"))
|
||||
} action: { frame in
|
||||
overlays.paneFrame = frame
|
||||
}
|
||||
.onAppear {
|
||||
seen = Set(store.inbox.map(\.id))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user