mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Dont show feature cards when searching by labels
This commit is contained in:
parent
bac61e71ed
commit
b446aef28f
1 changed files with 1 additions and 2 deletions
|
|
@ -450,8 +450,7 @@ struct AnimatingCellHeight: AnimatableModifier {
|
|||
filtersHeader
|
||||
.listRowInsets(.init(top: 0, leading: 10, bottom: 10, trailing: 10))
|
||||
|
||||
// Only show the feature card section if we have items loaded
|
||||
if !viewModel.hideFeatureSection, viewModel.items.count > 0, viewModel.searchTerm.isEmpty {
|
||||
if !viewModel.hideFeatureSection, viewModel.items.count > 0, viewModel.searchTerm.isEmpty, viewModel.selectedLabels.isEmpty, viewModel.negatedLabels.isEmpty {
|
||||
featureCard
|
||||
.listRowInsets(.init(top: 0, leading: 10, bottom: 10, trailing: 10))
|
||||
.modifier(AnimatingCellHeight(height: viewModel.featureItems.count > 0 ? 260 : 130))
|
||||
|
|
|
|||
Loading…
Reference in a new issue