Fix the spacing on top of the library list

On iPad the navigation bar size was set too larger without
specifying inline.

Without the spacer we get some re-layout glitches after loading
completes.
This commit is contained in:
Jackson Harper 2022-10-11 13:13:49 +08:00
parent 4149299b68
commit 188b51b293

View file

@ -67,6 +67,7 @@ import Views
.sheet(item: $viewModel.itemForHighlightsView) { item in
HighlightsListView(itemObjectID: item.objectID, hasHighlightMutations: $hasHighlightMutations)
}
.navigationBarTitleDisplayMode(.inline)
.toolbar {
ToolbarItem(placement: .barLeading) {
Image.smallOmnivoreLogo
@ -274,10 +275,13 @@ import Views
) {
EmptyView()
}
VStack {
VStack(spacing: 0) {
if viewModel.showLoadingBar {
ShimmeringLoader()
} else {
Spacer(minLength: 2)
}
List {
if viewModel.items.count > 0 || viewModel.searchTerm.count > 0 {
filtersHeader