Skip to content

Commit 8a46413

Browse files
likui628brc-dd
andauthored
fix(theme): navbar menu may exceed the screen (#988) (#989)
Co-authored-by: Divyansh Singh <40380293+brc-dd@users.noreply.github.com>
1 parent 97dee82 commit 8a46413

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

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

+8
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,14 @@ defineProps<{
2929
background-color: var(--vp-c-bg);
3030
box-shadow: var(--vp-shadow-3);
3131
transition: background-color 0.5s;
32+
max-height: calc(100vh - var(--vp-nav-height-mobile));
33+
overflow-y: auto;
34+
}
35+
36+
@media (min-width: 960px) {
37+
.VPMenu {
38+
max-height: calc(100vh - var(--vp-nav-height-desktop));
39+
}
3240
}
3341
3442
.dark .VPMenu {

0 commit comments

Comments
 (0)