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

Co-authored-by: Divyansh Singh <40380293+brc-dd@users.noreply.github.com>
pull/1005/head
Li Kui 3 years ago committed by GitHub
parent 97dee82ac5
commit 8a46413d6f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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 {

Loading…
Cancel
Save