Skip to content

Commit

Permalink
handle chat thread subject too long
Browse files Browse the repository at this point in the history
  • Loading branch information
Dat-TG committed Dec 29, 2023
1 parent c56640d commit 32fd882
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/core/widgets/chat_thread.dart
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,11 @@ class _ChatThreadWidgetState extends State<ChatThreadWidget> {
return ListTile(
tileColor: _chatStore.id == widget.id ? Colors.grey[700] : null,
textColor: _chatStore.id == widget.id ? Colors.white : null,
title: Text(widget.name),
title: Text(
widget.name,
maxLines: 1,
overflow: TextOverflow.ellipsis,
),
onTap: () {
widget.onTap();
},
Expand Down

0 comments on commit 32fd882

Please sign in to comment.