From c08cf4b851133eea09f1f8e4626f0f3af977416b 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 --- ui/StatusQ/src/StatusQ/Controls/StatusChatInfoButton.qml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ui/StatusQ/src/StatusQ/Controls/StatusChatInfoButton.qml b/ui/StatusQ/src/StatusQ/Controls/StatusChatInfoButton.qml index 2bd4b296f8..7de26a5464 100644 --- a/ui/StatusQ/src/StatusQ/Controls/StatusChatInfoButton.qml +++ b/ui/StatusQ/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 {