From ac3434454bfe711012ad4eb6ab1c669b148b824a Mon Sep 17 00:00:00 2001 From: Nurfog Date: Thu, 9 Apr 2026 09:54:38 -0400 Subject: [PATCH] fix(ui): mobile nav menus, light-mode contrast for Combobox, AppHeader and globals - Studio Navbar: add hamburger button + slide-out sidebar for mobile - Studio Combobox: replace dark-hardcoded colors with light/dark variants - Experience AppHeader: fix low-contrast borders/text/icons in light mode; mobile sidebar now uses bg-white/bg-gray-900 instead of glass-only - Experience globals.css: glass-card hover visible in light mode; scrollbar thumb visible in light mode (rgba black instead of white) --- web/experience/src/app/globals.css | 12 +- web/experience/src/components/AppHeader.tsx | 60 ++++----- web/studio/src/components/Combobox.tsx | 20 +-- web/studio/src/components/Navbar.tsx | 139 +++++++++++++++++++- 4 files changed, 187 insertions(+), 44 deletions(-) diff --git a/web/experience/src/app/globals.css b/web/experience/src/app/globals.css index 6a7e437..5a0834f 100644 --- a/web/experience/src/app/globals.css +++ b/web/experience/src/app/globals.css @@ -60,7 +60,7 @@ body { } .glass-card:hover { - @apply border-white/20 bg-white/5; + @apply border-black/10 dark:border-white/20 bg-black/5 dark:bg-white/5; } .gradient-text { @@ -106,10 +106,18 @@ body { } ::-webkit-scrollbar-thumb { - background: rgba(255, 255, 255, 0.1); + background: rgba(0, 0, 0, 0.12); border-radius: 10px; } +.dark ::-webkit-scrollbar-thumb { + background: rgba(255, 255, 255, 0.1); +} + ::-webkit-scrollbar-thumb:hover { + background: rgba(0, 0, 0, 0.22); +} + +.dark ::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.2); } \ No newline at end of file diff --git a/web/experience/src/components/AppHeader.tsx b/web/experience/src/components/AppHeader.tsx index 7972049..e00dc79 100644 --- a/web/experience/src/components/AppHeader.tsx +++ b/web/experience/src/components/AppHeader.tsx @@ -23,7 +23,7 @@ export default function AppHeader() { const platformName = branding?.platform_name || branding?.name || 'Academia'; return ( -
+
{branding?.logo_url ? ( @@ -46,13 +46,13 @@ export default function AppHeader() {
-
+
setIsMenuOpen(false)} - className="flex items-center gap-3 px-4 py-3 rounded-xl hover:bg-white/5 transition-colors" + className="flex items-center gap-3 px-4 py-3 rounded-xl hover:bg-gray-100 dark:hover:bg-white/5 transition-colors" > -