Skip to content

fix: respect fractional line height in previews#37

Open
hazre wants to merge 2 commits intosweepai:mainfrom
hazre:fix/preview-box-height
Open

fix: respect fractional line height in previews#37
hazre wants to merge 2 commits intosweepai:mainfrom
hazre:fix/preview-box-height

Conversation

@hazre
Copy link

@hazre hazre commented Feb 5, 2026

Fixes the tiny next‑edit preview by properly handling fractional line heights and centralizing preview box sizing so the inline diff renders at readable height across themes and fonts.

@versecafe
Copy link
Collaborator

@hazre can you add some screenshots showing this & thanks for opening a PR, apologies for any bugs we're still in early beta

@hazre
Copy link
Author

hazre commented Feb 5, 2026

Yeah sure, not exactly 1:1 (but this is what I have right now)

Before:
hlm-aGxtCWdldCBtYXhD
hlm-aGxtCWdldCBtZXRy

After:
hlm-aGxtDQovLyBUaGlz
hlm-aGxtLy8gVGhpcyBp

@hazre
Copy link
Author

hazre commented Feb 5, 2026

Maybe it's related to my theme? I'm using https://marketplace.visualstudio.com/items?itemName=antfu.theme-vitesse

@versecafe
Copy link
Collaborator

I've gotten a few reports of some themes rendering very very oddly that I need to figure out as I haven't been able to replicate it with my themes or swapping themes myself

image

@versecafe
Copy link
Collaborator

@hazre quick question what OS are you using?

@hazre
Copy link
Author

hazre commented Feb 6, 2026

Windows 11, also idk if this is relevant but I'm using the "CaskaydiaCove Nerd Font" font in vscode

@versecafe
Copy link
Collaborator

starting to think there's an issue with theme & font loading on windows as I can't recreate the font problems on macOS

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.

2 participants