Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Fixed

- Switching between sidebar tables no longer leaves extra blank space above the list. (#1675)
- SSH tunnels no longer pin a CPU core after the connection drops. A dropped tunnel is now detected and torn down instead of spinning in its relay loop. (#1769)

## [0.53.0] - 2026-06-25
Expand Down
3 changes: 1 addition & 2 deletions TablePro/Views/Sidebar/FavoritesTabView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -183,8 +183,7 @@ internal struct FavoritesTabView: View {
}
}
}
.listStyle(.sidebar)
.scrollContentBackground(.hidden)
.sidebarListLayout()
.onDeleteCommand {
deleteSelectedNode()
}
Expand Down
17 changes: 17 additions & 0 deletions TablePro/Views/Sidebar/SidebarListLayout.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import SwiftUI

private struct SidebarListLayout: ViewModifier {
func body(content: Content) -> some View {
content
.listStyle(.sidebar)
.scrollContentBackground(.hidden)
.safeAreaPadding(.top, 0)
.environment(\.defaultMinListHeaderHeight, 0)
}
}

extension View {
func sidebarListLayout() -> some View {
modifier(SidebarListLayout())
}
}
3 changes: 1 addition & 2 deletions TablePro/Views/Sidebar/SidebarTreeView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,7 @@ struct SidebarTreeView: View {
}
}
}
.listStyle(.sidebar)
.scrollContentBackground(.hidden)
.sidebarListLayout()
.contextMenu(forSelectionType: TableInfo.self) { _ in
EmptyView()
} primaryAction: { selection in
Expand Down
3 changes: 1 addition & 2 deletions TablePro/Views/Sidebar/SidebarView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -376,8 +376,7 @@ struct SidebarView: View {
}
}
}
.listStyle(.sidebar)
.scrollContentBackground(.hidden)
.sidebarListLayout()
.contextMenu(forSelectionType: TableInfo.self) { selection in
SidebarContextMenu(
clickedTable: selection.first,
Expand Down
Loading