From aa4b744b1862010aab76e403091acc8d941edfcd Mon Sep 17 00:00:00 2001 From: isaacclad Date: Sat, 4 Jul 2026 22:42:18 +0000 Subject: [PATCH] Fix modal flash when opening Events unlink dialog. Teleport modals to body, hide until Alpine is ready, use a single fade transition, and lock scroll on html with stable scrollbar gutter. Co-authored-by: Cursor --- resources/css/app.css | 1 + resources/views/components/modal.blade.php | 137 +++++++++++---------- 2 files changed, 71 insertions(+), 67 deletions(-) diff --git a/resources/css/app.css b/resources/css/app.css index 57cfd06..c5d33af 100644 --- a/resources/css/app.css +++ b/resources/css/app.css @@ -24,6 +24,7 @@ /* App shell: always light (ignore OS dark mode). Live meeting keeps dark UI. */ html.app-shell { color-scheme: light; + scrollbar-gutter: stable; } @media (max-width: 1023px) { diff --git a/resources/views/components/modal.blade.php b/resources/views/components/modal.blade.php index a823707..accdafe 100644 --- a/resources/views/components/modal.blade.php +++ b/resources/views/components/modal.blade.php @@ -14,75 +14,78 @@ $maxWidth = [ ][$maxWidth]; @endphp -
- {{-- Backdrop click to close --}} -
- - {{-- Panel: bottom-sheet on mobile, centered card on sm+ --}} +