From fa59200a031fad1d91b410cc85f36b8ef4e58ea6 Mon Sep 17 00:00:00 2001 From: Sayam Samal Date: Fri, 12 Jul 2024 18:12:39 +0530 Subject: [PATCH] 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. --- web/styles/popovers.css | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web/styles/popovers.css b/web/styles/popovers.css index acedbfc851..8dab6be20f 100644 --- a/web/styles/popovers.css +++ b/web/styles/popovers.css @@ -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);