diff --git a/src/renderer/src/components/right-sidebar/FolderWorkspaceSourceControlPanel.tsx b/src/renderer/src/components/right-sidebar/FolderWorkspaceSourceControlPanel.tsx index e64c97e5250..2da8b582af5 100644 --- a/src/renderer/src/components/right-sidebar/FolderWorkspaceSourceControlPanel.tsx +++ b/src/renderer/src/components/right-sidebar/FolderWorkspaceSourceControlPanel.tsx @@ -134,7 +134,7 @@ const WorktreeSection = memo( behind={remote?.behind} changeCount={entries.length} expanded={isExpanded} - showBranchInHeader={!bodyShown} + showBranchInHeader={!bodyShown || !bodyMounted} actions={ isExpanded && (!bodyShown || !bodyMounted) ? ( diff --git a/src/renderer/src/components/right-sidebar/source-control/listing/section-header.tsx b/src/renderer/src/components/right-sidebar/source-control/listing/section-header.tsx index fbc4039b863..8b58295f37a 100644 --- a/src/renderer/src/components/right-sidebar/source-control/listing/section-header.tsx +++ b/src/renderer/src/components/right-sidebar/source-control/listing/section-header.tsx @@ -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} >