mirror of
https://github.com/penpot/penpot.git
synced 2026-09-03 18:49:45 +00:00
🐛 Fix font-size dropdown clipping multi-digit values in Firefox (#11162)
The .custom-select-dropdown used width: fit-content which, in Firefox, is capped to the containing block width (60 px for the font-size input). This caused two- and three-digit font-size values (e.g. 48, 120, 1000) to be visually clipped in the dropdown list. Switching to width: max-content lets the dropdown expand to fit its content regardless of the containing block width, matching the behaviour Chrome already exhibited with fit-content. Fixes #11008
This commit is contained in:
parent
70b443a716
commit
b2fb63988f
@ -39,7 +39,7 @@
|
||||
.custom-select-dropdown {
|
||||
@extend %dropdown-wrapper;
|
||||
|
||||
width: fit-content;
|
||||
width: max-content;
|
||||
max-height: px2rem(320); // TODO: when this gets addressed in the DS, use a token
|
||||
.separator {
|
||||
margin: 0;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user