bigskysoftware / htmx

</> htmx - high power tools for HTML
https://htmx.org
Other
38.56k stars 1.31k forks source link

fix vertical alignment of github stars button in all states #3006

Closed untitaker closed 1 week ago

untitaker commented 2 weeks ago

Description

Without uBlock, the button's alt-text would be 1px lower than the rest of the nav items, and inconsistently capitalized.

With uBlock, the button would be slightly too high up. Screenshot of problem:

Screenshot from 2024-11-08 01-52-34 Screenshot from 2024-11-08 01-52-00

The solution is to apply styles on the span that GitHub's JS inserts. However, using margin will make the entire nav jump during pageload, so position: relative seems more robust there.

Testing

Tested in Firefox and Chrome latest

Checklist