mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Better empty state for iPad grid view
This commit is contained in:
parent
3667595f48
commit
d1826be5a9
1 changed files with 9 additions and 7 deletions
|
|
@ -916,9 +916,7 @@ struct AnimatingCellHeight: AnimatableModifier {
|
|||
.cornerRadius(6)
|
||||
}.redacted(reason: .placeholder)
|
||||
} else {
|
||||
if viewModel.fetcher.items.isEmpty {
|
||||
EmptyState(viewModel: viewModel)
|
||||
} else {
|
||||
if !viewModel.fetcher.items.isEmpty {
|
||||
ForEach(Array(viewModel.fetcher.items.enumerated()), id: \.1.id) { idx, item in
|
||||
LibraryItemGridCardNavigationLink(
|
||||
item: item,
|
||||
|
|
@ -957,10 +955,14 @@ struct AnimatingCellHeight: AnimatableModifier {
|
|||
}
|
||||
}
|
||||
|
||||
HStack {
|
||||
Spacer()
|
||||
BottomView(viewModel: viewModel).frame(maxWidth: 300)
|
||||
Spacer()
|
||||
if viewModel.fetcher.items.isEmpty {
|
||||
EmptyState(viewModel: viewModel)
|
||||
} else {
|
||||
HStack {
|
||||
Spacer()
|
||||
BottomView(viewModel: viewModel).frame(maxWidth: 300)
|
||||
Spacer()
|
||||
}
|
||||
}
|
||||
|
||||
if viewModel.fetcher.items.isEmpty, viewModel.isLoading {
|
||||
|
|
|
|||
Loading…
Reference in a new issue