Skip to content

Commit 93a09eb

Browse files
author
shunxing.cai
committed
fix(theme): adjust the position of the curtain to avoid block sidebar
1 parent 4608054 commit 93a09eb

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/client/theme-default/components/VPNavBar.vue

+2-3
Original file line numberDiff line numberDiff line change
@@ -166,8 +166,7 @@ const { hasSidebar } = useSidebar()
166166
position: absolute;
167167
right: 0;
168168
bottom: -32px;
169-
padding-left: var(--vp-sidebar-width);
170-
width: 100%;
169+
width: calc(100% - var(--vp-sidebar-width));
171170
height: 32px;
172171
}
173172
@@ -182,7 +181,7 @@ const { hasSidebar } = useSidebar()
182181
183182
@media (min-width: 1440px) {
184183
.VPNavBar.has-sidebar .curtain {
185-
padding-left: calc((100vw - var(--vp-layout-max-width)) / 2 + var(--vp-sidebar-width));
184+
width: calc(100% - ((100vw - var(--vp-layout-max-width)) / 2 + var(--vp-sidebar-width)));
186185
}
187186
}
188187
</style>

0 commit comments

Comments
 (0)