From 64f895e17a613117d7a708563addb031e3522fa6 Mon Sep 17 00:00:00 2001 From: Pascal Precht Date: Thu, 21 Jan 2021 13:20:34 +0100 Subject: [PATCH] fix(StatusChatInfo): ensure component width is calculated properly With the recent addition of the `muted` property in this component, the `width` is no longer reliably calculated. Sometimes it can happen that the muted bell icon jumps out of the component. This is very apparent inside of a `StatusChatInfoButton`. This commit ensure that the width of this component always includes all of its children, fixing the ui bug mentioned above. --- ui/shared/status/StatusChatInfo.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/shared/status/StatusChatInfo.qml b/ui/shared/status/StatusChatInfo.qml index c0abb7f67f..7cbe090711 100644 --- a/ui/shared/status/StatusChatInfo.qml +++ b/ui/shared/status/StatusChatInfo.qml @@ -44,7 +44,7 @@ Item { Item { id: nameAndInfo height: chatName.height + chatInfo.height - width: (chatName.width > chatInfo.width ? chatName.width : chatInfo.width) + width: childrenRect.width anchors.verticalCenter: parent.verticalCenter anchors.left: chatIdenticon.right anchors.leftMargin: Style.current.smallPadding