docs: ✏️ 优化侧边演示样式

This commit is contained in:
不如摸鱼去 2025-10-30 16:12:26 +08:00
parent 5c4d8dd8dc
commit 1e14e32571

View File

@ -230,7 +230,7 @@ watch(
position: fixed; position: fixed;
z-index: 10; z-index: 10;
right: 32px; right: 32px;
top: calc(var(--vp-nav-height) + var(--vp-layout-top-height) + 32px); top: calc(var(--vp-nav-height) + var(--vp-layout-top-height, 0px) + 32px);
width: 330px; width: 330px;
font-size: 16px; font-size: 16px;
background: var(--vp-c-bg-alt); background: var(--vp-c-bg-alt);
@ -360,7 +360,7 @@ watch(
position: fixed; position: fixed;
z-index: 10; z-index: 10;
right: 16px; right: 16px;
top: calc(var(--vp-nav-height) + var(--vp-layout-top-height) + 32px); top: calc(var(--vp-nav-height) + var(--vp-layout-top-height, 0px) + 32px);
width: 48px; width: 48px;
height: 48px; height: 48px;
background: var(--vp-c-bg-alt); background: var(--vp-c-bg-alt);