From c4eb92b5e8f5d5b2ed4bee56ef3cf0e715411124 Mon Sep 17 00:00:00 2001 From: Richard Ramos Date: Wed, 22 Jul 2020 15:21:44 -0400 Subject: [PATCH] fix: change size depending of content --- ui/app/AppMain.qml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ui/app/AppMain.qml b/ui/app/AppMain.qml index 68836e8ec8..90331c9c7d 100644 --- a/ui/app/AppMain.qml +++ b/ui/app/AppMain.qml @@ -64,10 +64,10 @@ RowLayout { anchors.topMargin: -5 radius: 9 color: Style.current.blue - width: childrenRect.width + 10 - height: childrenRect.height + 5 + width: chatsModel.unreadMessagesCount < 10 ? 18 : childrenRect.width + 10 + height: 18 Text { - font.pixelSize: 12 + font.pixelSize: chatsModel.unreadMessagesCount > 99 ? 10 : 12 color: Style.current.white anchors.centerIn: parent text: chatsModel.unreadMessagesCount