Retain branch before card body mounts and allow conflict rows to grow

This commit is contained in:
Brennan Benson
2026-11-10 11:09:13 -08:00
parent e17f0db177
commit 697a3c329a
2 changed files with 5 additions and 2 deletions
@@ -134,7 +134,7 @@ const WorktreeSection = memo(
behind={remote?.behind}
changeCount={entries.length}
expanded={isExpanded}
showBranchInHeader={!bodyShown}
showBranchInHeader={!bodyShown || !bodyMounted}
actions={
isExpanded && (!bodyShown || !bodyMounted) ? (
<SourceControlHeaderOverflowMenu worktree={owner.worktree} />
@@ -34,7 +34,10 @@ export function SectionHeader({
type="button"
variant="ghost"
size={compact ? 'chip' : 'xs'}
className={cn('min-w-0 flex-1 justify-start text-left')}
className={cn(
'h-auto min-w-0 flex-1 justify-start text-left',
compact ? 'min-h-4' : 'min-h-6'
)}
onClick={onToggle}
aria-expanded={!isCollapsed}
>