mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 14:13:43 +01:00
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:
committed by
Copybot
parent
e3a75e2396
commit
4e088c54fd
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user