From 7d5e7a022696b5db7ebb2651875d824726de2d36 Mon Sep 17 00:00:00 2001 From: pengzhanbo Date: Thu, 29 Feb 2024 04:02:12 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E4=BC=98=E5=8C=96=E5=A4=A7=E5=B1=8F?= =?UTF-8?q?=E5=B9=95=E4=B8=8B=20Footer=20=E5=AE=BD=E5=BA=A6=E8=AE=A1?= =?UTF-8?q?=E7=AE=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- theme/src/client/components/VFooter.vue | 1 + theme/src/client/styles/vars.scss | 1 + 2 files changed, 2 insertions(+) diff --git a/theme/src/client/components/VFooter.vue b/theme/src/client/components/VFooter.vue index c66c2550..56751927 100644 --- a/theme/src/client/components/VFooter.vue +++ b/theme/src/client/components/VFooter.vue @@ -70,6 +70,7 @@ onMounted(() => { @media (min-width: 768px) { .plume-footer { padding: 24px; + margin-right: calc(0px - ((100vw - var(--vp-layout-max-width)) / 2)); } } diff --git a/theme/src/client/styles/vars.scss b/theme/src/client/styles/vars.scss index e7077e1d..d4ebf5a8 100644 --- a/theme/src/client/styles/vars.scss +++ b/theme/src/client/styles/vars.scss @@ -316,6 +316,7 @@ :root { --vp-layout-max-width: 1440px; + --content-width: var(--vp-layout-max-width); } /**