antfu / shikiji

A syntax highlighter based on TextMate grammars. ESM rewrite of shiki, with more features and capabilities.
https://shikiji.netlify.app/
MIT License
1.47k stars 38 forks source link

fix(vitepress-plugin-twoslash): fix floating jump #90

Closed kongmoumou closed 8 months ago

kongmoumou commented 8 months ago

Description

Currently, type hover triggers unexpectedly scroll jump, caused by the floating popper doesn't have enough size to display properly. floating-vue has autoBoundaryMaxSize prop to limit the max height, it should fix this bug(Video below ⬇️).

https://github.com/antfu/shikiji/assets/35442047/ee90cf21-d0b9-431d-8fa2-94870acddf6d

Linked Issues

Additional context

netlify[bot] commented 8 months ago

Deploy Preview for shikiji ready!

Name Link
Latest commit 19042cff00e8278e090b441ac4f1f17c1466ee8e
Latest deploy log https://app.netlify.com/sites/shikiji/deploys/65a13926a07c660008ded0bf
Deploy Preview https://deploy-preview-90--shikiji.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.