From b6e736a5b45e01339996b3d50bd1e91e6b7c02c3 Mon Sep 17 00:00:00 2001 From: Brennan Benson <79079362+brennanb2025@users.noreply.github.com> Date: Tue, 28 Apr 2026 14:38:34 -0700 Subject: [PATCH] fix(sidebar): top-align worktree status dot with title (#1231) Co-authored-by: Orca --- src/renderer/src/components/sidebar/WorktreeCard.tsx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/renderer/src/components/sidebar/WorktreeCard.tsx b/src/renderer/src/components/sidebar/WorktreeCard.tsx index 07d93a8d6..a51c39d65 100644 --- a/src/renderer/src/components/sidebar/WorktreeCard.tsx +++ b/src/renderer/src/components/sidebar/WorktreeCard.tsx @@ -367,11 +367,17 @@ const WorktreeCard = React.memo(function WorktreeCard({ {/* Why: make the hover trigger keyboard-focusable so keyboard-only users can open the hover panel (Radix HoverCardTrigger asChild does not promote a - non-interactive child to focusable). */} + non-interactive child to focusable). + Why inline-flex: a default `display: inline` span + contains the inline-flex StatusIndicator on the text + baseline, pushing the dot ~2px down inside the card's + flex-column container. `inline-flex` removes the line + box so the dot stays top-aligned with the title. */}