From c017508a6adbf0b3dbcb72e059d5b3de5919f7bc Mon Sep 17 00:00:00 2001 From: Kelrap <99418823+Kelrap@users.noreply.github.com> Date: Thu, 24 Jul 2025 10:15:43 -0400 Subject: [PATCH] Add flexible to file messages to prevent long name overflow (#3551) --- .../chat/events/message_download_content.dart | 43 +++++++++++-------- 1 file changed, 24 insertions(+), 19 deletions(-) diff --git a/lib/pages/chat/events/message_download_content.dart b/lib/pages/chat/events/message_download_content.dart index 466d2493e..12216cdd3 100644 --- a/lib/pages/chat/events/message_download_content.dart +++ b/lib/pages/chat/events/message_download_content.dart @@ -53,26 +53,31 @@ class MessageDownloadContent extends StatelessWidget { backgroundColor: textColor.withAlpha(32), child: Icon(Icons.file_download_outlined, color: textColor), ), - Column( - crossAxisAlignment: CrossAxisAlignment.start, - mainAxisSize: MainAxisSize.min, - children: [ - Text( - filename, - maxLines: 1, - overflow: TextOverflow.ellipsis, - style: TextStyle( - color: textColor, - fontWeight: FontWeight.w500, + // #Pangea + Flexible( + child: + // Pangea# + Column( + crossAxisAlignment: CrossAxisAlignment.start, + mainAxisSize: MainAxisSize.min, + children: [ + Text( + filename, + maxLines: 1, + overflow: TextOverflow.ellipsis, + style: TextStyle( + color: textColor, + fontWeight: FontWeight.w500, + ), ), - ), - Text( - '$sizeString | $filetype', - maxLines: 1, - overflow: TextOverflow.ellipsis, - style: TextStyle(color: textColor, fontSize: 10), - ), - ], + Text( + '$sizeString | $filetype', + maxLines: 1, + overflow: TextOverflow.ellipsis, + style: TextStyle(color: textColor, fontSize: 10), + ), + ], + ), ), ], ),