From 61eb6a6d79de4cbd323b41af41f6131dd72fc9cb Mon Sep 17 00:00:00 2001 From: brennanb2025 Date: Fri, 1 May 2026 12:07:26 -0700 Subject: [PATCH] docs(titlebar): explain ungated Search button and sidebar-toggle class reuse Co-authored-by: Orca --- src/renderer/src/App.tsx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/renderer/src/App.tsx b/src/renderer/src/App.tsx index 7b8a3288a53..c352e806747 100644 --- a/src/renderer/src/App.tsx +++ b/src/renderer/src/App.tsx @@ -864,6 +864,13 @@ function App(): React.JSX.Element { ) : null} + {/* Why: always rendered (not gated on showSidebar) because the + worktree palette is global — it mirrors the ⌘J/Ctrl+Shift+J + shortcut which is live from every view including Settings and + Landing. The `sidebar-toggle` class is the shared titlebar + icon-button style used by back/forward/sidebar-toggle/right- + sidebar neighbors; the name is historical and applies to any + titlebar icon button, not only sidebar toggles. */}