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