Skip to content

Commit 9e0e89c

Browse files
authored
fix(vitepress-twoslash): scroll blocking on mobile viewports (#1262)
1 parent f694a72 commit 9e0e89c

2 files changed

Lines changed: 1 addition & 4 deletions

File tree

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)