diff --git a/lib/components/list_items/chat_list_item.dart b/lib/components/list_items/chat_list_item.dart index 7bb2102..0227909 100644 --- a/lib/components/list_items/chat_list_item.dart +++ b/lib/components/list_items/chat_list_item.dart @@ -147,25 +147,21 @@ class ChatListItem extends StatelessWidget { title: Row( children: [ Expanded( - child: Row( - mainAxisSize: MainAxisSize.min, - children: [ - Text( - room.getLocalizedDisplayname(L10n.of(context)), - maxLines: 1, - overflow: TextOverflow.ellipsis, - ), - SizedBox(width: 4), - room.pushRuleState == PushRuleState.notify - ? Container() - : Icon( - Icons.notifications_off, - color: Colors.grey[400], - size: 16, - ), - ], + child: Text( + room.getLocalizedDisplayname(L10n.of(context)), + maxLines: 1, + overflow: TextOverflow.ellipsis, + softWrap: false, ), ), + SizedBox(width: 4), + room.pushRuleState == PushRuleState.notify + ? Container() + : Icon( + Icons.notifications_off, + color: Colors.grey[400], + size: 16, + ), Text( room.timeCreated.localizedTimeShort(context), style: TextStyle( @@ -185,6 +181,7 @@ class ChatListItem extends StatelessWidget { style: TextStyle( color: Theme.of(context).primaryColor, ), + softWrap: false, ) : Text( room.lastEvent.getLocalizedBody( @@ -192,6 +189,7 @@ class ChatListItem extends StatelessWidget { withSenderNamePrefix: !room.isDirectChat, hideReply: true, ), + softWrap: false, maxLines: 1, overflow: TextOverflow.ellipsis, style: TextStyle(