fix(sidebar): top-align worktree status dot with title (#1231)

Co-authored-by: Orca <help@stably.ai>
This commit is contained in:
Brennan Benson
2026-04-28 14:38:34 -07:00
committed by GitHub
co-authored by Orca
parent af284dbac7
commit b6e736a5b4
@@ -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. */}
<span
tabIndex={0}
role="button"
aria-label={`Worktree status: ${status}. Show running agents.`}
className="inline-flex"
>
<StatusIndicator status={status} />
</span>