Skip to content

Commit

Permalink
fix(theme): adjust the position of the curtain to avoid block sidebar (
Browse files Browse the repository at this point in the history
  • Loading branch information
CHOYSEN committed Jan 20, 2023
1 parent 75d7d00 commit 48f0b01
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/client/theme-default/components/VPNavBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand All @@ -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>

0 comments on commit 48f0b01

Please sign in to comment.