diff --git a/docs/.vitepress/theme/components/Banner.vue b/docs/.vitepress/theme/components/Banner.vue index cc14ba10..d9a08307 100644 --- a/docs/.vitepress/theme/components/Banner.vue +++ b/docs/.vitepress/theme/components/Banner.vue @@ -100,6 +100,19 @@ watch(currentBanner, (newBanner) => { html.banner-show { --vp-layout-top-height: 64px; } + +/* 移动端优化高度 */ +@media (max-width: 768px) { + html.banner-show { + --vp-layout-top-height: 56px; + } +} + +@media (max-width: 480px) { + html.banner-show { + --vp-layout-top-height: 48px; + } +}