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 Michał Cieślak
parent b9b4ecae21
commit 0c0d9bf919
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