Skip to content

Commit 44953dc

Browse files
authored
fix(theme): don't let navbar obstruct clicks to top part of scrollbar (#1168)
1 parent 4e4a21a commit 44953dc

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ provide('close-screen', closeScreen)
3333
left: 0;
3434
z-index: var(--vp-z-index-nav);
3535
width: 100%;
36+
pointer-events: none;
3637
}
3738
3839
@media (min-width: 960px) {

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,11 @@ const { hasSidebar } = useSidebar()
5454
padding: 0 8px 0 24px;
5555
height: var(--vp-nav-height-mobile);
5656
transition: border-color 0.5s, background-color 0.5s;
57+
pointer-events: none;
58+
}
59+
60+
.VPNavBar .container:deep(*) {
61+
pointer-events: all;
5762
}
5863
5964
@media (min-width: 768px) {
@@ -96,6 +101,7 @@ const { hasSidebar } = useSidebar()
96101
justify-content: space-between;
97102
margin: 0 auto;
98103
max-width: calc(var(--vp-layout-max-width) - 64px);
104+
pointer-events: none;
99105
}
100106
101107
.content {

0 commit comments

Comments
 (0)