Skip to content

Commit

Permalink
fix(theme): navbar menu may exceed the screen (#988) (#989)
Browse files Browse the repository at this point in the history
Co-authored-by: Divyansh Singh <40380293+brc-dd@users.noreply.github.com>
  • Loading branch information
likui628 and brc-dd committed Jul 15, 2022
1 parent 97dee82 commit 8a46413
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/client/theme-default/components/VPMenu.vue
Expand Up @@ -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 {
Expand Down

0 comments on commit 8a46413

Please sign in to comment.