From 80f1718baa2e6968b6e9a42e31f6525e6c75bb6f Mon Sep 17 00:00:00 2001 From: Dorian Date: Fri, 15 May 2026 12:47:19 -0500 Subject: [PATCH] Polish mobile modals and safe areas --- src/App.vue | 16 +--------------- src/style.css | 22 ++++++++++++++++++---- 2 files changed, 19 insertions(+), 19 deletions(-) diff --git a/src/App.vue b/src/App.vue index ed3a5bb..119f4a6 100644 --- a/src/App.vue +++ b/src/App.vue @@ -3488,24 +3488,10 @@ watch(mobileMenuOpen, (open) => {

Notifications

Enable member alerts

- L484 can send updates about your membership, payment, card pickup, and private events directly to this installed app. + L484 can send updates about your membership, payment, card pickup, and private events directly to this installed app. Permission {{ notificationPermission }}.

-
-
- Recommended - Enable notifications before creating your card so this device can receive L484 updates. -
-
- Status - - Permission {{ notificationPermission }} · - {{ signupNotificationSupport.supported ? 'Push supported' : 'Push unavailable' }} · - {{ signupNotificationSupport.secure ? 'Secure context' : 'HTTPS required' }} - -
-

{{ signupNotificationMessage }}

diff --git a/src/style.css b/src/style.css index 71e6f71..6efa255 100644 --- a/src/style.css +++ b/src/style.css @@ -36,10 +36,24 @@ html, body { + min-height: 100%; margin: 0; background: #000; } +body::before { + content: ""; + position: fixed; + inset: 0; + z-index: -3; + background: + linear-gradient(90deg, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.42) 48%, rgba(0, 0, 0, 0.84)), + var(--safe-area-bg-image, #000); + background-position: center; + background-size: cover; + pointer-events: none; +} + body.menu-open { overflow: hidden; } @@ -58,7 +72,7 @@ body.menu-open { .hero-fold::before { content: ""; position: fixed; - inset: 0; + inset: calc(env(safe-area-inset-top) * -1) 0 calc(env(safe-area-inset-bottom) * -1); z-index: -2; display: none; background-image: @@ -2776,7 +2790,7 @@ body.menu-open { .modal-backdrop { position: fixed; inset: 0; - z-index: 500; + z-index: 10000; display: flex; align-items: center; justify-content: center; @@ -2885,7 +2899,7 @@ body.menu-open { position: relative; z-index: 1; width: min(100%, 40rem); - max-height: calc(100svh - 3rem); + max-height: min(42rem, calc(100svh - 2rem)); overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 8px; @@ -2895,7 +2909,7 @@ body.menu-open { .agreement-body { display: grid; - max-height: min(30rem, calc(100svh - 15rem)); + max-height: min(26rem, calc(100svh - 14rem)); gap: 1rem; overflow-y: auto; padding: 1rem;