From 7d2f784059216fc68342f5a986caac0df0f5a6ec Mon Sep 17 00:00:00 2001 From: micaiguai <1399880823@qq.com> Date: Thu, 12 Mar 2026 23:08:38 +0800 Subject: [PATCH] fix(vitepress-twoslash): scroll blocking on mobile viewports --- packages/vitepress-twoslash/src/client.ts | 1 + packages/vitepress-twoslash/src/style.css | 4 ---- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/packages/vitepress-twoslash/src/client.ts b/packages/vitepress-twoslash/src/client.ts index 219ae215a..20d555a30 100644 --- a/packages/vitepress-twoslash/src/client.ts +++ b/packages/vitepress-twoslash/src/client.ts @@ -64,6 +64,7 @@ const TwoslashFloatingVue = { } app.use(FloatingVue, { + strategy: 'fixed', ...options, themes: { ...options.themes, diff --git a/packages/vitepress-twoslash/src/style.css b/packages/vitepress-twoslash/src/style.css index 06c163d02..2ef496440 100644 --- a/packages/vitepress-twoslash/src/style.css +++ b/packages/vitepress-twoslash/src/style.css @@ -16,10 +16,6 @@ z-index: calc(var(--vp-z-index-local-nav) - 1); } -.v-popper--theme-twoslash.v-popper__popper { - content-visibility: auto; -} - .v-popper--theme-twoslash .v-popper__inner { background: var(--twoslash-popup-bg); color: var(--twoslash-popup-color);