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
+2 -2
View File
@@ -354,8 +354,8 @@ private struct MergeContent: View {
}
@MainActor
func confirmDiscard(_ task: ByreTask, _ store: Store, _ overlays: Overlays, anchor: CGRect?) async {
if !(await overlays.showConfirm(["Discard \"\(task.name)\"?"], action: "Discard", danger: true, anchor: anchor)) {
func confirmDiscard(_ task: ByreTask, _ store: Store, _ overlays: Overlays) async {
if !(await overlays.showConfirm(["Discard \"\(task.name)\"?"], action: "Discard", danger: true, inPane: true)) {
return
}
do {