Skip to content

Commit 7d2f784

Browse files
committed
fix(vitepress-twoslash): scroll blocking on mobile viewports
1 parent 4365957 commit 7d2f784

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

packages/vitepress-twoslash/src/client.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ const TwoslashFloatingVue = {
6464
}
6565

6666
app.use(FloatingVue, {
67+
strategy: 'fixed',
6768
...options,
6869
themes: {
6970
...options.themes,

packages/vitepress-twoslash/src/style.css

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,6 @@
1616
z-index: calc(var(--vp-z-index-local-nav) - 1);
1717
}
1818

19-
.v-popper--theme-twoslash.v-popper__popper {
20-
content-visibility: auto;
21-
}
22-
2319
.v-popper--theme-twoslash .v-popper__inner {
2420
background: var(--twoslash-popup-bg);
2521
color: var(--twoslash-popup-color);

0 commit comments

Comments
 (0)