From e8761ff637d62a84aff5588f8140563fd9412b39 Mon Sep 17 00:00:00 2001 From: Christian Pauly Date: Thu, 17 Feb 2022 14:16:39 +0100 Subject: [PATCH] chore: Follow up fix app bar --- lib/pages/chat/chat_app_bar_title.dart | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/lib/pages/chat/chat_app_bar_title.dart b/lib/pages/chat/chat_app_bar_title.dart index 0a659308a..a112ff8c5 100644 --- a/lib/pages/chat/chat_app_bar_title.dart +++ b/lib/pages/chat/chat_app_bar_title.dart @@ -44,11 +44,14 @@ class ChatAppBarTitle extends StatelessWidget { size: 32, ), const SizedBox(width: 12), - Text( - room.getLocalizedDisplayname(MatrixLocals(L10n.of(context)!)), - maxLines: 1, - style: const TextStyle( - fontSize: 16, + Expanded( + child: Text( + room.getLocalizedDisplayname(MatrixLocals(L10n.of(context)!)), + maxLines: 1, + overflow: TextOverflow.ellipsis, + style: const TextStyle( + fontSize: 16, + ), ), ), ],