fix ordering (#1041)

This commit is contained in:
Ethan Pippin 2024-04-21 09:31:16 -06:00 committed by GitHub
parent 84e5fc78da
commit 99375e98ff
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 8 additions and 8 deletions

View File

@ -57,10 +57,6 @@ struct SearchView: View {
itemsSection(title: L10n.episodes, keyPath: \.episodes, posterType: searchPosterType)
}
if viewModel.people.isNotEmpty {
itemsSection(title: L10n.people, keyPath: \.people, posterType: .portrait)
}
if viewModel.programs.isNotEmpty {
itemsSection(title: L10n.programs, keyPath: \.programs, posterType: .landscape)
}
@ -68,6 +64,10 @@ struct SearchView: View {
if viewModel.channels.isNotEmpty {
itemsSection(title: L10n.channels, keyPath: \.channels, posterType: .portrait)
}
if viewModel.people.isNotEmpty {
itemsSection(title: L10n.people, keyPath: \.people, posterType: .portrait)
}
}
}
}

View File

@ -69,10 +69,6 @@ struct SearchView: View {
itemsSection(title: L10n.episodes, keyPath: \.episodes, posterType: searchPosterType)
}
if viewModel.people.isNotEmpty {
itemsSection(title: L10n.people, keyPath: \.people, posterType: .portrait)
}
if viewModel.programs.isNotEmpty {
itemsSection(title: L10n.programs, keyPath: \.programs, posterType: .landscape)
}
@ -80,6 +76,10 @@ struct SearchView: View {
if viewModel.channels.isNotEmpty {
itemsSection(title: L10n.channels, keyPath: \.channels, posterType: .portrait)
}
if viewModel.people.isNotEmpty {
itemsSection(title: L10n.people, keyPath: \.people, posterType: .portrait)
}
}
.edgePadding(.vertical)
}