Center task modals

This commit is contained in:
Ian Gulliver
2026-10-20 22:40:48 -07:00
parent 9af1463507
commit ee73b93a30
4 changed files with 6 additions and 12 deletions
+1 -7
View File
@@ -688,12 +688,11 @@ private struct DiscardButton: View {
var small = false
@Environment(Store.self) private var store
@Environment(Overlays.self) private var overlays
@ViewState private var frame: CGRect = .zero
var body: some View {
let button = Button("Discard") {
Task {
await confirmDiscard(task, store, overlays, anchor: frame)
await confirmDiscard(task, store, overlays)
}
}
Group {
@@ -705,11 +704,6 @@ private struct DiscardButton: View {
}
.disabled(busy)
.help("The agent writes the task summary, then byre deletes the worktree and branch without merging")
.onGeometryChange(for: CGRect.self) { g in
g.frame(in: .named("window"))
} action: { f in
frame = f
}
}
}