From bef74e4ebd4c0705f68f41798f9dcdb96b7e9500 Mon Sep 17 00:00:00 2001 From: cheykrym Date: Wed, 8 Oct 2025 06:27:10 +0300 Subject: [PATCH] chatstab patch --- yobble/Views/Tab/ChatsTab.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/yobble/Views/Tab/ChatsTab.swift b/yobble/Views/Tab/ChatsTab.swift index 7837b8f..86db664 100644 --- a/yobble/Views/Tab/ChatsTab.swift +++ b/yobble/Views/Tab/ChatsTab.swift @@ -603,6 +603,7 @@ private struct SearchResultPlaceholderView: View { private struct ChatRowView: View { let chat: PrivateChatListItem let currentUserId: String? + let messageLimitLine: Int = 1 private var title: String { switch chat.chatType { @@ -848,7 +849,7 @@ private struct ChatRowView: View { Text(messagePreview) .font(.subheadline) .foregroundColor(subtitleColor) - .lineLimit(2) + .lineLimit(messageLimitLine) .truncationMode(.tail) } .frame(maxWidth: .infinity, alignment: .leading)