From a79fcf9cd4a64da6f83baa42d73ff8f64a74c02e Mon Sep 17 00:00:00 2001 From: pengzhanbo Date: Wed, 17 Jul 2024 00:09:38 +0800 Subject: [PATCH] chore: tweak --- theme/src/client/components/VPFooter.vue | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/theme/src/client/components/VPFooter.vue b/theme/src/client/components/VPFooter.vue index 74920e73..515a66d6 100644 --- a/theme/src/client/components/VPFooter.vue +++ b/theme/src/client/components/VPFooter.vue @@ -87,11 +87,9 @@ onMounted(() => { .vp-footer { padding: 24px; } + .vp-footer.has-sidebar { - margin-left: calc( - (100% - (var(--vp-layout-max-width) - 64px)) / 2 + var(--vp-sidebar-width) - - 32px - ) + margin-left: calc((100% - var(--vp-layout-max-width)) / 2 + var(--vp-sidebar-width)); } }