Merge pull request #34195 from overleaf/mj-command-palette-menu-labels

[web] Add menu labels to commands, and add more commands to command palette

GitOrigin-RevId: 21e17142bb3112b5fdcda85a472122b011979f49
This commit is contained in:
Mathias Jakobsen
2026-06-05 08:07:06 +00:00
committed by Copybot
parent cabe0046c5
commit b7735d402d
8 changed files with 62 additions and 14 deletions
@@ -180,7 +180,8 @@ export const RailLayout = () => {
handler: () => {
setLeftMenuShown(true)
},
label: t('settings'),
menuLabel: t('settings'),
label: t('open_settings'),
},
],
[t, setLeftMenuShown]
@@ -122,7 +122,7 @@ const CommandDropdownChild = ({ item }: { item: Entry<TaggedCommand> }) => {
<MenuBarOption
eventKey={item.id}
key={item.id}
title={item.label}
title={item.menuLabel ?? item.label}
// eslint-disable-next-line react/jsx-handler-names
onClick={onClickHandler}
href={item.href}