Fix padding

This commit is contained in:
OlegAba
2023-02-11 16:44:31 -05:00
committed by William Casarin
parent 29f192c377
commit 94a67adff9
5 changed files with 7 additions and 7 deletions

View File

@@ -33,13 +33,14 @@ struct DirectMessagesView: View {
NavigationLink(destination: chat, isActive: $open_dm) {
EmptyView()
}
LazyVStack {
LazyVStack(spacing: 0) {
if model.dms.isEmpty, !model.loading {
EmptyTimelineView()
} else {
let dms = requests ? model.message_requests : model.friend_dms
ForEach(dms, id: \.0) { tup in
MaybeEvent(tup)
.padding(.top, 10)
}
}
}