search: use lazyvstack

we're gonna need this when expanding search results

Changelog-Changed: Use LazyVStack in text search results
Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
William Casarin
2024-09-27 12:35:59 -07:00
parent 62772615b6
commit f957756df7

View File

@@ -24,6 +24,7 @@ struct NDBSearchView: View {
.padding() .padding()
.foregroundColor(.secondary) .foregroundColor(.secondary)
LazyVStack {
ForEach(results, id: \.self) { note in ForEach(results, id: \.self) { note in
EventView(damus: damus_state, event: note) EventView(damus: damus_state, event: note)
.onTapGesture { .onTapGesture {
@@ -35,6 +36,7 @@ struct NDBSearchView: View {
ThiccDivider() ThiccDivider()
} }
}
} else if results.count == 0 { } else if results.count == 0 {
HStack { HStack {