Fix padding and other minor UI improvements

This commit is contained in:
Jacob Davis
2022-12-17 16:11:19 -05:00
committed by William Casarin
parent 300cae6800
commit 2c44366ca5
9 changed files with 72 additions and 42 deletions

View File

@@ -91,15 +91,19 @@ struct EventDetailView: View {
}
ScrollView(.vertical) {
let collapsed_events = calculated_collapsed_events(
privkey: damus.keypair.privkey,
collapsed: self.collapsed,
active: thread.event,
events: thread.events
)
ForEach(collapsed_events, id: \.id) { cev in
CollapsedEventView(cev, scroller: proxy)
LazyVStack {
let collapsed_events = calculated_collapsed_events(
privkey: damus.keypair.privkey,
collapsed: self.collapsed,
active: thread.event,
events: thread.events
)
ForEach(collapsed_events, id: \.id) { cev in
CollapsedEventView(cev, scroller: proxy)
}
}
.padding(.horizontal)
.padding(.top)
EndBlock()
}