Merge pull request #36092 from overleaf/mj-command-palette-pre-release

[web] Pre-labs-release changes for command palette

GitOrigin-RevId: 578cf56f1ef51996ce928466edf50e360fa73b42
This commit is contained in:
Mathias Jakobsen
2026-09-17 11:46:54 +00:00
committed by Copybot
parent e3a75e2396
commit 4e088c54fd
6 changed files with 70 additions and 19 deletions
@@ -224,6 +224,14 @@ export const ToolbarMenuBar = () => {
[t]
)
const commandPaletteMenuSectionStructure: MenuSectionStructure = useMemo(
() => ({
id: 'command-palette-group',
children: ['command-palette'],
}),
[]
)
const {
mathPreview,
setMathPreview,
@@ -301,6 +309,10 @@ export const ToolbarMenuBar = () => {
}
onClick={toggleMathPreview}
/>
<CommandSection
section={commandPaletteMenuSectionStructure}
includeDivider
/>
<CommandSection
section={pdfControlsMenuSectionStructure}
includeDivider