From 2a1b1ac3dd9da846f781db51f7c2d8d3b0a8f2a1 Mon Sep 17 00:00:00 2001 From: yangyue_1228 Date: Tue, 10 Mar 2026 14:34:14 +0800 Subject: [PATCH] feat: restore menu button and filter menu items to red-box items only --- .../src/components/editor/actions/useNotebookActions.tsx | 5 +++++ frontend/src/components/editor/controls/Controls.tsx | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/frontend/src/components/editor/actions/useNotebookActions.tsx b/frontend/src/components/editor/actions/useNotebookActions.tsx index 89f8c089e19..d54e317f199 100644 --- a/frontend/src/components/editor/actions/useNotebookActions.tsx +++ b/frontend/src/components/editor/actions/useNotebookActions.tsx @@ -463,6 +463,7 @@ export function useNotebookActions() { icon: , label: "Command palette", hotkey: "global.commandPalette", + redundant: true, handle: () => setCommandPaletteOpen((open) => !open), }, @@ -470,6 +471,7 @@ export function useNotebookActions() { icon: , label: "Keyboard shortcuts", hotkey: "global.showHelp", + redundant: true, handle: () => setKeyboardShortcutsOpen((open) => !open), }, { @@ -481,6 +483,7 @@ export function useNotebookActions() { { icon: , label: "Resources", + redundant: true, handle: NOOP_HANDLER, dropdown: [ { @@ -528,6 +531,7 @@ export function useNotebookActions() { // If file is in the url, then we ran `marimo edit` // without a specific file hidden: !location.search.includes("file"), + redundant: true, handle: () => { const withoutSearch = document.baseURI.split("?")[0]; window.open(withoutSearch, "_self"); @@ -540,6 +544,7 @@ export function useNotebookActions() { // If file is in the url, then we ran `marimo edit` // without a specific file hidden: !location.search.includes("file"), + redundant: true, handle: () => { const url = newNotebookURL(); window.open(url, "_blank"); diff --git a/frontend/src/components/editor/controls/Controls.tsx b/frontend/src/components/editor/controls/Controls.tsx index 2d6f866651a..87fb58c7d65 100644 --- a/frontend/src/components/editor/controls/Controls.tsx +++ b/frontend/src/components/editor/controls/Controls.tsx @@ -88,11 +88,11 @@ export const Controls = ({ {!closed && (
{presenting && } - {/* - */} + {/* */}