From 553f1f5beb85567b46cd1d946a5b6594effea4cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Cie=C5=9Blak?= Date: Thu, 6 Oct 2022 11:58:58 +0200 Subject: [PATCH] fix(ChatHeaderContentView): Unreachable buttons in community header at min width Closes: #7647 --- .../Chat/views/ChatHeaderContentView.qml | 29 +++++++++++++------ 1 file changed, 20 insertions(+), 9 deletions(-) diff --git a/ui/app/AppLayouts/Chat/views/ChatHeaderContentView.qml b/ui/app/AppLayouts/Chat/views/ChatHeaderContentView.qml index 6d5470ec2c..28c78bec68 100644 --- a/ui/app/AppLayouts/Chat/views/ChatHeaderContentView.qml +++ b/ui/app/AppLayouts/Chat/views/ChatHeaderContentView.qml @@ -12,9 +12,8 @@ import utils 1.0 import "../panels" import "../stores" -RowLayout { +Item { id: root - spacing: padding / 2 property alias menuButton: menuButton property alias membersButton: membersButton @@ -44,17 +43,29 @@ RowLayout { Loader { id: loader - Layout.fillWidth: d.selectingMembers - Layout.fillHeight: true - sourceComponent: { - if (d.selectingMembers) return membersSelector - return statusChatInfoButton - } + + anchors.top: parent.top + anchors.bottom: parent.bottom + anchors.left: parent.left + anchors.right: d.selectingMembers ? parent.right : undefined + + sourceComponent: d.selectingMembers ? membersSelector : statusChatInfoButton + } + + Rectangle { + anchors.fill: actionButtons + visible: actionButtons.visible + opacity: 0.8 + color: Style.current.background } RowLayout { id: actionButtons - Layout.alignment: Qt.AlignRight + + anchors.top: parent.top + anchors.bottom: parent.bottom + anchors.right: parent.right + spacing: 8 visible: !d.selectingMembers