fix: Correctly size the unread bubble in the room list
This commit is contained in:
parent
b0b4c8cada
commit
cd32b61995
1 changed files with 3 additions and 1 deletions
|
|
@ -291,7 +291,9 @@ class ChatListItem extends StatelessWidget {
|
|||
height: unreadBubbleSize,
|
||||
width: room.notificationCount == 0 && !room.isUnread
|
||||
? 0
|
||||
: unreadBubbleSize,
|
||||
: (unreadBubbleSize - 10) *
|
||||
room.notificationCount.toString().length +
|
||||
10,
|
||||
decoration: BoxDecoration(
|
||||
color: room.highlightCount > 0
|
||||
? Colors.red
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue