diff --git a/web/src/templates.js b/web/src/templates.js index 1a3e4c99a8..b78563943e 100644 --- a/web/src/templates.js +++ b/web/src/templates.js @@ -127,3 +127,14 @@ Handlebars.registerHelper("tooltip_hotkey_hints", (...hotkeys) => { const result = `${hotkey_hints}`; return new Handlebars.SafeString(result); }); + +Handlebars.registerHelper("popover_hotkey_hints", (...hotkeys) => { + hotkeys.pop(); // Handlebars options + let hotkey_hints = ""; + common.adjust_mac_hotkey_hints(hotkeys); + for (const hotkey of hotkeys) { + hotkey_hints += ` `; + } + const result = ` `; + return new Handlebars.SafeString(result); +}); diff --git a/web/styles/popovers.css b/web/styles/popovers.css index 3fedce159a..7c1ce3f3a4 100644 --- a/web/styles/popovers.css +++ b/web/styles/popovers.css @@ -1476,17 +1476,23 @@ ul.popover-menu-outer-list { } } -.popover-menu-hotkey-hint { - color: var(--color-hotkey-hint); - text-align: center; - font-size: 14px; - font-style: normal; - font-weight: 500; - line-height: 14px; - padding: 2px 4px; - border-radius: 3px; - border: 1px solid var(--color-hotkey-hint); +.popover-menu-hotkey-hints { + display: flex; + gap: 4px; margin-left: auto; + padding-left: 5px; + + > .popover-menu-hotkey-hint { + color: var(--color-hotkey-hint); + text-align: center; + font-size: 14px; + font-style: normal; + font-weight: 500; + line-height: 14px; + padding: 2px 4px; + border-radius: 3px; + border: 1px solid var(--color-hotkey-hint); + } } #theme-switcher { diff --git a/web/templates/navbar_help_menu.hbs b/web/templates/navbar_help_menu.hbs index edd2d9a8a6..86994b491c 100644 --- a/web/templates/navbar_help_menu.hbs +++ b/web/templates/navbar_help_menu.hbs @@ -9,7 +9,8 @@