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.
This commit is contained in:
Pascal Precht 2021-01-21 13:20:34 +01:00 committed by Iuri Matias
parent 21edea4a9a
commit 64f895e17a
1 changed files with 1 additions and 1 deletions

View File

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