fix: Correctly size the unread bubble in the room list

This commit is contained in:
Sorunome 2021-08-07 17:15:45 +02:00
parent b2f250ebd8
commit d51ce6be8a
No known key found for this signature in database
GPG Key ID: B19471D07FC9BE9C
1 changed files with 3 additions and 1 deletions

View File

@ -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