From 6cff8979c9e4653e8e36efd9cae62a0a2e789fe1 Mon Sep 17 00:00:00 2001 From: limes Date: Mon, 17 Aug 2026 19:50:17 +0200 Subject: [PATCH] fix: navbar widget cut off on scroll --- src/components/Navbar/Navbar.vue | 922 +++---------------------------- 1 file changed, 64 insertions(+), 858 deletions(-) diff --git a/src/components/Navbar/Navbar.vue b/src/components/Navbar/Navbar.vue index b19128d..67c7843 100644 --- a/src/components/Navbar/Navbar.vue +++ b/src/components/Navbar/Navbar.vue @@ -13,8 +13,6 @@ import { Popover } from 'reka-ui/namespaced'; import type { LocaleObject } from '@nuxtjs/i18n'; const { locales, setLocale, locale } = useI18n(); -/* TODO: Mobile stuff */ - // en-US first, other en locales next, alphabetically sorted locales third, conlangs/other stuff last. function scoreLocale(cObj: LocaleObject): number { const c = cObj.code; @@ -535,27 +533,26 @@ onMounted(() => { mode="svg" /> - - + - - + {{ locale.name }} + + @@ -573,46 +570,44 @@ onMounted(() => { :alt="user.mii?.name ?? ''" > - - -
- + +
+ +
+ @@ -652,7 +647,7 @@ header { } header * { - z-index: 1; + z-index: 3; } .logo-link { @@ -673,22 +668,26 @@ header::before { } header:has(.nav-menu-viewport[data-state="open"]), -.locale-dropdown[data-state="open"], -.navbar-user-widget[data-state="open"] { +header:has(.locale-dropdown-toggle[data-state="open"]), +header:has(.user-widget-toggle[data-state="open"]) { box-shadow: 0 0 0 600vw rgba(27, 31, 59, 0.8); + background: rgba(27, 31, 59, 1);; } -header.transparent:has(.nav-menu-viewport[data-state="open"]) { - background: rgba(27, 31, 59, 0.85);; +header.transparent:has(.nav-menu-viewport[data-state="open"]), +header.transparent:has(.locale-dropdown-toggle[data-state="open"]), +header.transparent:has(.user-widget-toggle[data-state="open"]) { + background: rgba(27, 31, 59, 0.8) !important; } header.transparent, header.transparent::before { - background: rgba(27, 31, 59, 0); + background: rgba(27, 31, 59, 0) !important; } header button { all: unset; + box-sizing: border-box; } header .left-section { @@ -1133,8 +1132,6 @@ header .right-section { text-align: center; margin-top: 0; - - box-shadow: 0 0 10px -2px var(--bg-shade-0); } .navbar-user-widget { @@ -1307,794 +1304,3 @@ header .right-section { } } - - -