From 85fa73c7d656ffdb850eece51c9ef544c4817e84 Mon Sep 17 00:00:00 2001 From: Moepchi Date: Mon, 9 Nov 2026 09:44:16 +0000 Subject: [PATCH] Hamburger menu: picking an entry closes the whole panel It stayed open on top of the dialog the entry had just opened. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU --- web/src/App.tsx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/web/src/App.tsx b/web/src/App.tsx index b6b0809..2251b87 100644 --- a/web/src/App.tsx +++ b/web/src/App.tsx @@ -12655,6 +12655,11 @@ function AppInner() { className={`ts-menubar-items${compactMenu ? " ts-nova-menu-panel" : ""}${ novaMenuOpen ? " ts-nova-menu-panel-open" : "" }`} + // Picking an entry closes the whole ☰ panel, not just the submenu - + // otherwise it stays on top of the dialog the entry just opened. + onClick={(e) => { + if (compactMenu && (e.target as HTMLElement).closest(".ts-menu-item")) setNovaMenuOpen(false); + }} >