Fix post view padding

Changelog-Fixed: Fix padding in post view
Closes: #879
This commit is contained in:
OlegAba
2023-04-05 16:56:59 -04:00
committed by William Casarin
parent 3f3892ba1d
commit b8226d674d
2 changed files with 18 additions and 16 deletions

View File

@@ -72,19 +72,22 @@ struct UserSearch: View {
}
var body: some View {
ScrollView {
LazyVStack {
Divider()
if users.count == 0 {
EmptyUserSearchView()
} else {
ForEach(users) { user in
UserView(damus_state: damus_state, pubkey: user.pubkey)
.onTapGesture {
on_user_tapped(user: user)
}
VStack(spacing: 0) {
Divider()
ScrollView {
LazyVStack {
if users.count == 0 {
EmptyUserSearchView()
} else {
ForEach(users) { user in
UserView(damus_state: damus_state, pubkey: user.pubkey)
.onTapGesture {
on_user_tapped(user: user)
}
}
}
}
.padding()
}
}
}