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);