Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Twoslash popover displayed in wrong place #1595

Merged
merged 1 commit into from
May 17, 2024
Merged

Conversation

KermanX
Copy link
Member

@KermanX KermanX commented May 16, 2024

fix #1593.

This is only a simple workaround. The root fix may requires a rewrite/fork of the Twoslash renderer, which will also make #1414 fixed).

Also tested in print mode.

Copy link

netlify bot commented May 16, 2024

Deploy Preview for slidev ready!

Name Link
🔨 Latest commit a79586b
🔍 Latest deploy log https://app.netlify.com/sites/slidev/deploys/66463086f920bc0008ce5f8c
😎 Deploy Preview https://deploy-preview-1595--slidev.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.


#twoslash-container .v-popper__wrapper {
transform: scale(calc(1 * var(--slidev-slide-scale)));
transform-origin: 30px top;
Copy link
Member Author

@KermanX KermanX May 16, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is an approximation. There is an arrow newar the left top of the popover, which should align the center of the code token.

@antfu antfu merged commit 7d8dfc0 into slidevjs:main May 17, 2024
17 of 18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TwoSlash Tooltip shown at wrong position
2 participants