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:
Sayam Samal 2024-07-12 18:12:39 +05:30 committed by Tim Abbott
parent 2a81bda72e
commit fa59200a03

View File

@ -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);