From 4318881f09cdf79741a7002ee6552c3101d2f216 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E7=91=9E?= <2896402717@qq.com> Date: Thu, 13 Feb 2025 16:22:39 +0800 Subject: [PATCH] fix(components):fix --- .../theme-default/components/VPLocalNavOutlineDropdown.vue | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/client/theme-default/components/VPLocalNavOutlineDropdown.vue b/src/client/theme-default/components/VPLocalNavOutlineDropdown.vue index 2b74cc17..89fc51f4 100644 --- a/src/client/theme-default/components/VPLocalNavOutlineDropdown.vue +++ b/src/client/theme-default/components/VPLocalNavOutlineDropdown.vue @@ -17,6 +17,7 @@ const open = ref(false) const vh = ref(0) const main = ref() const items = ref() + const {hasSidebar} = useSidebar() function closeOnClickOutside(e: Event) { @@ -170,6 +171,7 @@ function scrollToTop() { left: calc(var(--vp-sidebar-width) + 32px); width: 320px; } + .VPLocalNavOutlineDropdown:not(.has-sidebar) .items{ left:32px; }