fix(StatusChatInfoToolBar): Right anchored title in StatusChatInfoToolBar

So that elide mode in text can be activated
This commit is contained in:
Alexandra Betouni 2021-09-14 10:48:39 +03:00 committed by Pascal Precht
parent c65f80d22e
commit 6e8a36be86
No known key found for this signature in database
GPG Key ID: 0EE28D8D6FD85D7D
1 changed files with 3 additions and 1 deletions

View File

@ -28,6 +28,8 @@ Item {
anchors.verticalCenter: parent.verticalCenter
anchors.left: parent.left
anchors.leftMargin: 5
anchors.right: (implicitWidth > parent.width - 50) ? statusMenuButton.left : undefined
anchors.rightMargin: 5
type: StatusChatInfoButton.Type.OneToOneChat
onClicked: statusChatInfoToolBar.chatInfoButtonClicked()
}
@ -39,7 +41,7 @@ Item {
anchors.verticalCenter: parent.verticalCenter
visible: popupMenuSlot.active
width: 32
width: visible ? 32 : 0
height: 32
type: StatusRoundButton.Type.Secondary