Skip to content

Commit

Permalink
fix(vitepress-plugin-twoslash): improve tooltip experience
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Jan 9, 2024
1 parent cc12827 commit 47aa215
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions packages/vitepress-plugin-twoslash/src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,13 @@ const TwoSlashFloatingVue: Plugin<[FloatingVueConfig?]> = {
...options,
themes: {
twoslash: {
$extend: 'menu',
delay: { show: 0, hide: 0 },
$extend: 'dropdown',
triggers: ['hover', 'focus', 'touch'],
popperTriggers: ['hover', 'focus', 'touch'],
delay: 0,
handleResize: false,
autoHide: true,
instantMove: true,
},
...options.theme,
},
Expand Down

0 comments on commit 47aa215

Please sign in to comment.