DM: Add vertical padding between messages

This commit is contained in:
Thomas Ricouard 2023-01-25 13:09:43 +01:00
parent 2b3bd41928
commit 4705500dc4

View file

@ -39,7 +39,8 @@ public struct ConversationDetailView: View {
ForEach(viewModel.messages) { message in
ConversationMessageView(message: message,
conversation: viewModel.conversation)
.id(message.id)
.padding(.vertical, 4)
.id(message.id)
}
bottomAnchorView
}
@ -99,6 +100,7 @@ public struct ConversationDetailView: View {
ConversationMessageView(message: message, conversation: viewModel.conversation)
.redacted(reason: .placeholder)
.shimmering()
.padding(.vertical, 4)
}
}