From 11710263e0f08ef1d15103f7e8b6fa76d69966fe Mon Sep 17 00:00:00 2001 From: cheykrym Date: Fri, 12 Dec 2025 00:15:51 +0300 Subject: [PATCH] fix --- yobble/Views/Chat/PrivateChatView.swift | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/yobble/Views/Chat/PrivateChatView.swift b/yobble/Views/Chat/PrivateChatView.swift index 3ae0bd7..527453f 100644 --- a/yobble/Views/Chat/PrivateChatView.swift +++ b/yobble/Views/Chat/PrivateChatView.swift @@ -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(