From 73bd36e4286fcd13f939b4cd7310261636e9ffd1 Mon Sep 17 00:00:00 2001 From: cheykrym Date: Thu, 11 Dec 2025 23:26:41 +0300 Subject: [PATCH] patch msg --- yobble/Views/Chat/PrivateChatView.swift | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/yobble/Views/Chat/PrivateChatView.swift b/yobble/Views/Chat/PrivateChatView.swift index e261b0e..a75bc10 100644 --- a/yobble/Views/Chat/PrivateChatView.swift +++ b/yobble/Views/Chat/PrivateChatView.swift @@ -148,7 +148,7 @@ struct PrivateChatView: View { private var messagesList: some View { ScrollView { - LazyVStack(alignment: .leading, spacing: 12) { + LazyVStack(alignment: .leading, spacing: 0) { Color.clear .frame(height: 1) .id(bottomAnchorId) @@ -183,7 +183,7 @@ struct PrivateChatView: View { .scaleEffect(x: 1, y: -1, anchor: .center) } } - .padding(.vertical, 12) + .padding(.vertical, 8) } .scaleEffect(x: 1, y: -1, anchor: .center) .simultaneousGesture( @@ -238,14 +238,14 @@ struct PrivateChatView: View { private func messageRow(for message: MessageItem) -> some View { let isCurrentUser = currentUserId.map { $0 == message.senderId } ?? false - return HStack(alignment: .bottom, spacing: 12) { + return HStack(alignment: .bottom, spacing: 8) { if isCurrentUser { Spacer(minLength: 32) } messageBubble(for: message, isCurrentUser: isCurrentUser) if !isCurrentUser { Spacer(minLength: 32) } } - .padding(.horizontal, 16) + .padding(.horizontal, 8) } private func messageBubble(for message: MessageItem, isCurrentUser: Bool) -> some View {