docs(titlebar): explain ungated Search button and sidebar-toggle class reuse

Co-authored-by: Orca <help@stably.ai>
This commit is contained in:
brennanb2025
2026-05-01 12:07:26 -07:00
co-authored by Orca
parent 190c7f4d5a
commit 61eb6a6d79
+7
View File
@@ -864,6 +864,13 @@ function App(): React.JSX.Element {
</PopoverContent>
</Popover>
) : 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. */}
<Tooltip>
<TooltipTrigger asChild>
<button