Skip to content

Commit

Permalink
fix: put ellipsis when display name is too long in members list
Browse files Browse the repository at this point in the history
  • Loading branch information
Julian KOUNE authored and hoangdat committed Jul 25, 2023
1 parent 3bed8aa commit 28e609f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion lib/pages/chat_details/participant_list_item.dart
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,13 @@ class ParticipantListItem extends StatelessWidget {
),
title: Row(
children: <Widget>[
Text(user.calcDisplayname()),
Flexible(
child: Text(
user.calcDisplayname(),
overflow: TextOverflow.ellipsis,
maxLines: 1,
),
),
if (permissionBatch.isNotEmpty)
Container(
padding: const EdgeInsets.symmetric(
Expand Down

0 comments on commit 28e609f

Please sign in to comment.