Skip to content

Commit fc24f97

Browse files
committed
fix(sidebar): remove blank space above table tree on selection change
1 parent c1f4d35 commit fc24f97

3 files changed

Lines changed: 5 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2020

2121
### Fixed
2222

23+
- Switching between sidebar tables no longer leaves extra blank space above the table tree. (#1675)
2324
- 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)
2425

2526
## [0.53.0] - 2026-06-25

TablePro/Views/Sidebar/SidebarTreeView.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,8 @@ struct SidebarTreeView: View {
6565
}
6666
.listStyle(.sidebar)
6767
.scrollContentBackground(.hidden)
68+
.safeAreaPadding(.top, 0)
69+
.environment(\.defaultMinListHeaderHeight, 0)
6870
.contextMenu(forSelectionType: TableInfo.self) { _ in
6971
EmptyView()
7072
} primaryAction: { selection in

TablePro/Views/Sidebar/SidebarView.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -378,6 +378,8 @@ struct SidebarView: View {
378378
}
379379
.listStyle(.sidebar)
380380
.scrollContentBackground(.hidden)
381+
.safeAreaPadding(.top, 0)
382+
.environment(\.defaultMinListHeaderHeight, 0)
381383
.contextMenu(forSelectionType: TableInfo.self) { selection in
382384
SidebarContextMenu(
383385
clickedTable: selection.first,

0 commit comments

Comments
 (0)