From cd32b61995bcf075498fc95bf839007c9634cc37 Mon Sep 17 00:00:00 2001 From: Sorunome Date: Sat, 7 Aug 2021 17:15:45 +0200 Subject: [PATCH] fix: Correctly size the unread bubble in the room list --- lib/widgets/list_items/chat_list_item.dart | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/widgets/list_items/chat_list_item.dart b/lib/widgets/list_items/chat_list_item.dart index 842cf7b16..cb33c89af 100644 --- a/lib/widgets/list_items/chat_list_item.dart +++ b/lib/widgets/list_items/chat_list_item.dart @@ -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