Skip to content

Fix underlines with larger line-heights - #143

Open
mpasalic wants to merge 2 commits into
mainfrom
fix-line-height-underline
Open

Fix underlines with larger line-heights#143
mpasalic wants to merge 2 commits into
mainfrom
fix-line-height-underline

Conversation

@mpasalic

@mpasalic mpasalic commented Sep 30, 2024

Copy link
Copy Markdown
Collaborator

We need a better solution eventually, but just made it so the underlined text itself doesn't have a super large line-height. This works great in almost every case except when the line only is a link. That line will be shorter than most and the second you write some other text (that's not underlined) it will jump to a larger height.

Not sure if I'm happy with this, but decided to push as a PR and see what you think.

(I know you said to punt on this, but just wanted to see if a quick solution worked alright).

underline_fix_edgecase.mov

@mpasalic
mpasalic requested a review from twop September 30, 2024 05:37
@twop

twop commented Sep 30, 2024

Copy link
Copy Markdown
Owner

Do you have a screen at hand to demo the edge case?

@mpasalic

mpasalic commented Oct 4, 2024

Copy link
Copy Markdown
Collaborator Author

Do you have a screen at hand to demo the edge case?

Good idea, sorry I didn't think of doing that right away. I just updated the description.

Btw, I guess one other hacky fix for this edgecase would be to keep the lineheight normal when the entire line is a link. Basically, only apply the shorter lineheight when it won't cause this glitch.

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