fix: mobile modal UX improvements (delete confirm, browser-back, z-index) (#206)

- Replace browser confirm() with ConfirmModal for delete confirmation
- Add dedicated history entry for delete dialog so browser back dismisses it
- Track unsaved-changes warning source to restore correct context on cancel
- Add overlayClassName prop to ConfirmModal for nested z-index layering
- Add .nested-confirm CSS class for proper modal stacking
- Add i18n keys for delete confirmation dialog (EN + DE)

Closes #202
This commit is contained in:
Daniel Volz
2026-02-14 20:17:01 +01:00
committed by GitHub
parent 0ffab23b6d
commit 6ff0ad2745
5 changed files with 84 additions and 15 deletions
+4
View File
@@ -136,6 +136,10 @@
"stock": "Bestand",
"totalCapacity": "Kapazität",
"type": "Typ"
},
"deleteModal": {
"title": "Medikament löschen",
"message": "Möchtest du \"{{name}}\" wirklich löschen?"
}
},
"form": {
+4
View File
@@ -136,6 +136,10 @@
"stock": "Stock",
"totalCapacity": "Capacity",
"type": "Type"
},
"deleteModal": {
"title": "Delete medication",
"message": "Do you really want to delete \"{{name}}\"?"
}
},
"form": {