From 214db63d4c9bcfde2c90a57db856c533ff4cd13b Mon Sep 17 00:00:00 2001 From: zurdi Date: Mon, 31 Mar 2025 14:38:36 +0000 Subject: [PATCH] refactor: enhance mobile navigation responsiveness and styling --- .../common/Navigation/CollectionsDrawer.vue | 9 ++----- .../components/common/Navigation/HomeBtn.vue | 7 +++-- .../common/Navigation/MainAppBar.vue | 26 ++++++++++++++++--- .../common/Navigation/PlatformsDrawer.vue | 9 ++----- .../common/Navigation/SettingsDrawer.vue | 11 +++----- .../components/common/Navigation/UserBtn.vue | 4 ++- 6 files changed, 37 insertions(+), 29 deletions(-) diff --git a/frontend/src/components/common/Navigation/CollectionsDrawer.vue b/frontend/src/components/common/Navigation/CollectionsDrawer.vue index 78d581e3d..de062fa92 100644 --- a/frontend/src/components/common/Navigation/CollectionsDrawer.vue +++ b/frontend/src/components/common/Navigation/CollectionsDrawer.vue @@ -80,7 +80,8 @@ onBeforeUnmount(() => { 'drawer-mobile': smAndDown, }" class="bg-surface pa-1" - :style="mdAndUp ? 'height: unset' : ''" + :style="mdAndUp ? 'height: unset' : 'width: calc(100% - 16px) !important;'" + style="z-index: 9998 !important" rounded :border="0" > @@ -137,9 +138,3 @@ onBeforeUnmount(() => { - diff --git a/frontend/src/components/common/Navigation/HomeBtn.vue b/frontend/src/components/common/Navigation/HomeBtn.vue index 36ecb5582..125c02417 100644 --- a/frontend/src/components/common/Navigation/HomeBtn.vue +++ b/frontend/src/components/common/Navigation/HomeBtn.vue @@ -1,10 +1,13 @@ diff --git a/frontend/src/components/common/Navigation/MainAppBar.vue b/frontend/src/components/common/Navigation/MainAppBar.vue index abf38d908..8de9df6da 100644 --- a/frontend/src/components/common/Navigation/MainAppBar.vue +++ b/frontend/src/components/common/Navigation/MainAppBar.vue @@ -30,6 +30,25 @@ function collapse() { } - diff --git a/frontend/src/components/common/Navigation/SettingsDrawer.vue b/frontend/src/components/common/Navigation/SettingsDrawer.vue index 558e92fac..16142fdae 100644 --- a/frontend/src/components/common/Navigation/SettingsDrawer.vue +++ b/frontend/src/components/common/Navigation/SettingsDrawer.vue @@ -50,7 +50,7 @@ async function logout() { - diff --git a/frontend/src/components/common/Navigation/UserBtn.vue b/frontend/src/components/common/Navigation/UserBtn.vue index ef3124b87..129de15a0 100644 --- a/frontend/src/components/common/Navigation/UserBtn.vue +++ b/frontend/src/components/common/Navigation/UserBtn.vue @@ -3,17 +3,19 @@ import storeAuth from "@/stores/auth"; import storeNavigation from "@/stores/navigation"; import { defaultAvatarPath } from "@/utils"; import { storeToRefs } from "pinia"; +import { useDisplay } from "vuetify"; // Props const navigationStore = storeNavigation(); const auth = storeAuth(); const { user } = storeToRefs(auth); +const { smAndDown } = useDisplay();