fix(theme): adjust the position of the curtain to avoid block sidebar (#1816)

pull/1820/head
CHOYSEN 2 years ago committed by GitHub
parent 75d7d0084b
commit 48f0b01569
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -166,8 +166,7 @@ const { hasSidebar } = useSidebar()
position: absolute;
right: 0;
bottom: -32px;
padding-left: var(--vp-sidebar-width);
width: 100%;
width: calc(100% - var(--vp-sidebar-width));
height: 32px;
}
@ -182,7 +181,7 @@ const { hasSidebar } = useSidebar()
@media (min-width: 1440px) {
.VPNavBar.has-sidebar .curtain {
padding-left: calc((100vw - var(--vp-layout-max-width)) / 2 + var(--vp-sidebar-width));
width: calc(100% - ((100vw - var(--vp-layout-max-width)) / 2 + var(--vp-sidebar-width)));
}
}
</style>

Loading…
Cancel
Save