Skip to content

Commit f8acf0b

Browse files
authored
Reduce sidebar spacing by wrapping list content in a Section (#31)
1 parent bb6e7a6 commit f8acf0b

1 file changed

Lines changed: 9 additions & 7 deletions

File tree

macos/Sources/Features/Worktrunk/WorktrunkSidebarView.swift

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -282,14 +282,16 @@ struct WorktrunkSidebarView: View {
282282
}()
283283
let topWorktreePaths = Set(worktreeTabs.compactMap(\.worktreeRootPath).map(standardizedPath))
284284
return List(selection: selection) {
285-
if sidebarTabsEnabled {
286-
sidebarTabsList(snapshot: snapshot, tabs: worktreeTabs)
287-
}
285+
Section {
286+
if sidebarTabsEnabled {
287+
sidebarTabsList(snapshot: snapshot, tabs: worktreeTabs)
288+
}
288289

289-
if store.sidebarListMode == .flatWorktrees {
290-
flatWorktreeList(snapshot: snapshot, excludingWorktreePaths: topWorktreePaths)
291-
} else {
292-
nestedRepoList(snapshot: snapshot, excludingWorktreePaths: topWorktreePaths)
290+
if store.sidebarListMode == .flatWorktrees {
291+
flatWorktreeList(snapshot: snapshot, excludingWorktreePaths: topWorktreePaths)
292+
} else {
293+
nestedRepoList(snapshot: snapshot, excludingWorktreePaths: topWorktreePaths)
294+
}
293295
}
294296
}
295297
.background(SidebarListScrollFinder(preserver: sidebarScrollPreserver))

0 commit comments

Comments
 (0)