Skip to content

Commit 8ed6ea0

Browse files
committed
fix(theme): overflow clip is buggy on safari
closes #5050 x-ref: 06f0e1a (#5039), 0ee7158 (#5027)
1 parent bd748df commit 8ed6ea0

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ watchEffect(() => {
4747
width: 100%;
4848
pointer-events: none;
4949
transition: background-color 0.5s;
50-
overflow-x: clip;
5150
}
5251
5352
@media (min-width: 960px) {

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,8 +187,6 @@ watchPostEffect(() => {
187187
justify-content: flex-end;
188188
align-items: center;
189189
height: var(--vp-nav-height);
190-
margin-right: -100vw;
191-
padding-right: 100vw;
192190
transition: background-color 0.5s;
193191
}
194192
@@ -201,6 +199,11 @@ watchPostEffect(() => {
201199
.VPNavBar:not(.has-sidebar):not(.home.top) .content-body {
202200
background-color: transparent;
203201
}
202+
203+
.content-body {
204+
margin-right: -100vw;
205+
padding-right: 100vw;
206+
}
204207
}
205208
206209
@media (max-width: 767px) {

0 commit comments

Comments
 (0)