fix: remove vertical padding between collapsed sidebar sections

Apply zero vertical padding when sections are collapsed so they sit flush
against each other, matching the density of main nav items. Expanded
sections retain 4px vertical padding for breathing room.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Test
2026-03-30 18:21:32 +02:00
parent c3b397f900
commit 2b85640521

View File

@@ -120,7 +120,7 @@ function SortableSection({ group, sectionProps }: {
const isRenaming = sectionProps.renamingType === group.type
return (
<div ref={setNodeRef} style={{ transform: CSS.Transform.toString(transform), transition, opacity: isDragging ? 0.5 : 1, padding: '4px 6px' }} {...attributes}>
<div ref={setNodeRef} style={{ transform: CSS.Transform.toString(transform), transition, opacity: isDragging ? 0.5 : 1, padding: isCollapsed ? '0 6px' : '4px 6px' }} {...attributes}>
<SectionContent
group={group} items={items} isCollapsed={isCollapsed}
selection={sectionProps.selection} onSelect={sectionProps.onSelect}