diff --git a/src/client/theme-default/components/VPMenu.vue b/src/client/theme-default/components/VPMenu.vue index 7dad2062d2ec..15249aca44f6 100644 --- a/src/client/theme-default/components/VPMenu.vue +++ b/src/client/theme-default/components/VPMenu.vue @@ -29,6 +29,14 @@ defineProps<{ background-color: var(--vp-c-bg); box-shadow: var(--vp-shadow-3); transition: background-color 0.5s; + max-height: calc(100vh - var(--vp-nav-height-mobile)); + overflow-y: auto; +} + +@media (min-width: 960px) { + .VPMenu { + max-height: calc(100vh - var(--vp-nav-height-desktop)); + } } .dark .VPMenu {