fix
This commit is contained in:
parent
08e485f9b4
commit
11710263e0
@ -239,6 +239,11 @@ struct PrivateChatView: View {
|
||||
private func messageRow(for decoratedMessage: DecoratedMessage) -> some View {
|
||||
let message = decoratedMessage.message
|
||||
let isCurrentUser = currentUserId.map { $0 == message.senderId } ?? false
|
||||
let hasDecorations = decoratedMessage.showHorns || decoratedMessage.showLegs
|
||||
|
||||
let topPadding: CGFloat = decoratedMessage.showHorns ? 5 : -12
|
||||
let verticalPadding: CGFloat = hasDecorations ? 0 : 0
|
||||
|
||||
return HStack(alignment: .bottom, spacing: 8) {
|
||||
if isCurrentUser { Spacer(minLength: 32) }
|
||||
|
||||
@ -251,6 +256,8 @@ struct PrivateChatView: View {
|
||||
if !isCurrentUser { Spacer(minLength: 32) }
|
||||
}
|
||||
.padding(.horizontal, 8)
|
||||
.padding(.top, topPadding)
|
||||
.padding(.vertical, verticalPadding)
|
||||
}
|
||||
|
||||
private func messageBubble(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user