From 7b2030c6ab93e10ddec278ff367c57544828e15f Mon Sep 17 00:00:00 2001 From: Pascal Precht Date: Tue, 6 Jul 2021 11:26:01 +0200 Subject: [PATCH] fix(StatusChatInfoButton): vertically center title if no subtitle is provided Closes #230 --- src/StatusQ/Controls/StatusChatInfoButton.qml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/StatusQ/Controls/StatusChatInfoButton.qml b/src/StatusQ/Controls/StatusChatInfoButton.qml index 2bd4b296..7de26a54 100644 --- a/src/StatusQ/Controls/StatusChatInfoButton.qml +++ b/src/StatusQ/Controls/StatusChatInfoButton.qml @@ -97,6 +97,7 @@ Rectangle { Item { id: statusChatInfoButtonTitle anchors.top: identicon.top + anchors.topMargin: statusChatInfoButtonSubTitle.visible ? 0 : 8 anchors.left: identicon.right anchors.leftMargin: 8 @@ -175,7 +176,8 @@ Rectangle { id: statusChatInfoButtonSubTitle anchors.left: statusChatInfoButtonTitle.left anchors.top: statusChatInfoButtonTitle.bottom - height: chatType.height + visible: !!statusChatInfoButton.subTitle + height: visible ? chatType.height : 0 width: childrenRect.width StatusBaseText {