From 8c06932d15eb9a0bcacc000c0dc3a978f3cb08e1 Mon Sep 17 00:00:00 2001 From: Nico Ritschel Date: Fri, 6 Mar 2026 17:25:01 -0800 Subject: [PATCH] Reduce sidebar spacing by wrapping list content in a Section --- .../Worktrunk/WorktrunkSidebarView.swift | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/macos/Sources/Features/Worktrunk/WorktrunkSidebarView.swift b/macos/Sources/Features/Worktrunk/WorktrunkSidebarView.swift index 5f883c3a8a..1381fd887f 100644 --- a/macos/Sources/Features/Worktrunk/WorktrunkSidebarView.swift +++ b/macos/Sources/Features/Worktrunk/WorktrunkSidebarView.swift @@ -281,14 +281,16 @@ struct WorktrunkSidebarView: View { }() let topWorktreePaths = Set(worktreeTabs.compactMap(\.worktreeRootPath).map(standardizedPath)) return List(selection: selection) { - if sidebarTabsEnabled { - sidebarTabsList(snapshot: snapshot, tabs: worktreeTabs) - } + Section { + if sidebarTabsEnabled { + sidebarTabsList(snapshot: snapshot, tabs: worktreeTabs) + } - if store.sidebarListMode == .flatWorktrees { - flatWorktreeList(snapshot: snapshot, excludingWorktreePaths: topWorktreePaths) - } else { - nestedRepoList(snapshot: snapshot, excludingWorktreePaths: topWorktreePaths) + if store.sidebarListMode == .flatWorktrees { + flatWorktreeList(snapshot: snapshot, excludingWorktreePaths: topWorktreePaths) + } else { + nestedRepoList(snapshot: snapshot, excludingWorktreePaths: topWorktreePaths) + } } } .background(SidebarListScrollFinder(preserver: sidebarScrollPreserver))