Skip to content

fix(theme): navbar menu may exceed the screen #989

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Jul 15, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
chore: tweak styles
  • Loading branch information
brc-dd committed Jul 15, 2022
commit e52df97448408af040d9f1ad9a1d147a2cf9ce2e
8 changes: 7 additions & 1 deletion src/client/theme-default/components/VPMenu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,16 @@ 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-desktop));
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 {
box-shadow: var(--vp-shadow-2);
}
Expand Down