From 473ca66f48fbcd27f62b844055ea4799b17be0e6 Mon Sep 17 00:00:00 2001 From: Kelrap <99418823+Kelrap@users.noreply.github.com> Date: Mon, 21 Jul 2025 10:42:10 -0400 Subject: [PATCH] Make editing text flexible (#3492) * Make editing text flexible * chore: simplify pangea comments --------- Co-authored-by: ggurdin --- lib/pages/chat/reply_display.dart | 40 +++++++++++++++++++++---------- 1 file changed, 27 insertions(+), 13 deletions(-) diff --git a/lib/pages/chat/reply_display.dart b/lib/pages/chat/reply_display.dart index b39e76204..c7c9f8a8a 100644 --- a/lib/pages/chat/reply_display.dart +++ b/lib/pages/chat/reply_display.dart @@ -68,21 +68,35 @@ class _EditContent extends StatelessWidget { color: theme.colorScheme.primary, ), Container(width: 15.0), - Text( - // #Pangea - textScaler: TextScaler.noScaling, - // Pangea# - event.calcLocalizedBodyFallback( - MatrixLocals(L10n.of(context)), - withSenderNamePrefix: false, - hideReply: true, - ), - overflow: TextOverflow.ellipsis, - maxLines: 1, - style: TextStyle( - color: theme.textTheme.bodyMedium!.color, + // #Pangea + // Text( + // event.calcLocalizedBodyFallback( + // MatrixLocals(L10n.of(context)), + // withSenderNamePrefix: false, + // hideReply: true, + // ), + // overflow: TextOverflow.ellipsis, + // maxLines: 1, + // style: TextStyle( + // color: theme.textTheme.bodyMedium!.color, + // ), + // ), + Flexible( + child: Text( + textScaler: TextScaler.noScaling, + event.calcLocalizedBodyFallback( + MatrixLocals(L10n.of(context)), + withSenderNamePrefix: false, + hideReply: true, + ), + overflow: TextOverflow.ellipsis, + maxLines: 1, + style: TextStyle( + color: theme.textTheme.bodyMedium!.color, + ), ), ), + // Pangea# ], ); }