fix: scale sideMenu labels according to computed font size #1356
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Closes #1180.
See #1180 (comment) for the
width
change.See #1180 (comment) for the
font-family
change.Setting units in
px
and(r)em
uses the CSS-definedfont-size
units (in this case7px
) and not the computedfont-size
, which means the label size does not scale with the increased minimum font sizes users can set in their browser's settings. Minimum font size is a setting in pretty much every browser on Windows, Linux and MacOS and is likely set toNone
by default (hence why it was not reproducable in #1180)If a user sets the minimum font size above
7px
(for example10px
) then the label width (a static32px
) becomes too short for the text width.The
ex
unit is supported by Chrome 1+, Edge 12+, Firefox 1+, IE 4+ and Safari 1+.32px
9ex
7px
font size and no minimum font size (7px
computed)7px
font size and a minimum font size of10px
(10px
computed)7px
font size and a mimimum font size of10px
(4K display,7px
computed)