From 4dbb6e040f9e2348ec59c5d812fcaac4e2caf8b7 Mon Sep 17 00:00:00 2001 From: Ryderjj89 Date: Wed, 1 Oct 2025 17:42:13 -0400 Subject: [PATCH] Fix modal interactivity and login persistence issues --- assets/css/main.css | 38 +++++++++++ components/LoginModal.vue | 115 +++++++++++++++------------------- server/api/auth/login.post.ts | 2 +- 3 files changed, 89 insertions(+), 66 deletions(-) diff --git a/assets/css/main.css b/assets/css/main.css index 393ea8c..7908fa0 100644 --- a/assets/css/main.css +++ b/assets/css/main.css @@ -448,3 +448,41 @@ img[src*="logo"], .logo-image { margin: 1rem !important; width: 100% !important; } + +/* Login modal specific overrides */ +.login-modal { + position: fixed !important; + top: 0 !important; + left: 0 !important; + right: 0 !important; + bottom: 0 !important; + z-index: 9999 !important; + display: flex !important; + align-items: center !important; + justify-content: center !important; + background-color: rgba(0, 0, 0, 0.5) !important; + backdrop-filter: blur(4px) !important; +} + +.login-modal .modal-overlay { + position: fixed !important; + top: 0 !important; + left: 0 !important; + right: 0 !important; + bottom: 0 !important; + background-color: rgba(0, 0, 0, 0.5) !important; + backdrop-filter: blur(4px) !important; +} + +.login-modal .modal-content { + background: white !important; + border-radius: 0.5rem !important; + box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2) !important; + max-width: 400px !important; + max-height: 90vh !important; + overflow: auto !important; + position: relative !important; + z-index: 10000 !important; + margin: 1rem !important; + width: 100% !important; +} diff --git a/components/LoginModal.vue b/components/LoginModal.vue index 4f98f64..dd75e2c 100644 --- a/components/LoginModal.vue +++ b/components/LoginModal.vue @@ -1,73 +1,58 @@