mirror of
https://github.com/zulip/zulip.git
synced 2026-07-03 21:10:12 +08:00
popovers: Allow popover hotkey hints min-width to scale with font size.
A `min-width` is applied to the popover hotkey hints to ensure that they are nearly square when only one character is present. This `min-width` was previously using rem units, which did not scale with the font size of the popover font. This commit changes the `min-width` to use `em` units, which will scale with the font size of the popover hotkeys.
This commit is contained in:
parent
2a81bda72e
commit
fa59200a03
@ -1422,7 +1422,8 @@ ul.popover-menu-list {
|
||||
font-weight: 500;
|
||||
/* 14px at 14px/1em */
|
||||
line-height: 1em;
|
||||
min-width: 1.25rem;
|
||||
/* 20px at 14px/1em */
|
||||
min-width: 1.4285em;
|
||||
padding: 2px 4px;
|
||||
border-radius: 3px;
|
||||
border: 1px solid var(--color-border-popover-hotkey-hint);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user