From 06fda108c36004c25a2bf9a552fcdc8aab4df16a Mon Sep 17 00:00:00 2001 From: jxxghp Date: Sat, 1 Jul 2023 18:22:07 +0800 Subject: [PATCH] fix layout --- index.html | 4 ++-- src/@layouts/components/VerticalNavLayout.vue | 8 +++++++- src/layouts/components/DefaultLayoutWithVerticalNav.vue | 2 +- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/index.html b/index.html index 1dc7f47e..5d9c92df 100644 --- a/index.html +++ b/index.html @@ -4,7 +4,7 @@ - + MoviePilot @@ -67,7 +67,7 @@ - + diff --git a/src/@layouts/components/VerticalNavLayout.vue b/src/@layouts/components/VerticalNavLayout.vue index 3ad56e90..b4e49318 100644 --- a/src/@layouts/components/VerticalNavLayout.vue +++ b/src/@layouts/components/VerticalNavLayout.vue @@ -108,7 +108,7 @@ export default defineComponent({ .layout-navbar { position: fixed; - width: 100vw; + width: calc(100vw - variables.$layout-vertical-nav-width); z-index: variables.$layout-vertical-nav-layout-navbar-z-index; inset-block-start: 0; @@ -194,4 +194,10 @@ export default defineComponent({ } } } + +.layout-wrapper.layout-nav-type-vertical.layout-overlay-nav { + .layout-navbar { + width: 100vw; + } +} diff --git a/src/layouts/components/DefaultLayoutWithVerticalNav.vue b/src/layouts/components/DefaultLayoutWithVerticalNav.vue index 1dcc69d7..fcbe73c5 100644 --- a/src/layouts/components/DefaultLayoutWithVerticalNav.vue +++ b/src/layouts/components/DefaultLayoutWithVerticalNav.vue @@ -34,7 +34,7 @@ const search = () => {