From c46236bb6cf69059bc7635d2287b8d8554d91ad0 Mon Sep 17 00:00:00 2001 From: Kelrap Date: Wed, 2 Jul 2025 13:54:11 -0400 Subject: [PATCH] Limit space taken up by chat search result's sender name --- .../chat_search/chat_search_message_tab.dart | 25 +++++++++++++------ 1 file changed, 18 insertions(+), 7 deletions(-) diff --git a/lib/pages/chat_search/chat_search_message_tab.dart b/lib/pages/chat_search/chat_search_message_tab.dart index abf36f0a3..70fa9da95 100644 --- a/lib/pages/chat_search/chat_search_message_tab.dart +++ b/lib/pages/chat_search/chat_search_message_tab.dart @@ -143,15 +143,26 @@ class _MessageSearchResultListTile extends StatelessWidget { size: 16, ), const SizedBox(width: 8), - Text( - displayname, - ), - Expanded( - child: Text( - ' | ${event.originServerTs.localizedTimeShort(context)}', - style: const TextStyle(fontSize: 12), + // #Pangea + Flexible( + child: + // Pangea# + Text( + displayname, + // #Pangea + maxLines: 1, + overflow: TextOverflow.ellipsis, + // Pangea# ), ), + // #Pangea + // Expanded( + // child: + // Pangea# + Text( + ' | ${event.originServerTs.localizedTimeShort(context)}', + style: const TextStyle(fontSize: 12), + ), ], ), subtitle: Linkify(