From 27f28d781e93fde6f77222f049dcdc09101823d0 Mon Sep 17 00:00:00 2001 From: Claudio Cambra Date: Wed, 10 Aug 2022 17:57:48 +0200 Subject: [PATCH] Prevent the 'Cancel' button of the user status selector getting squashed Signed-off-by: Claudio Cambra --- src/gui/UserStatusSelector.qml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/gui/UserStatusSelector.qml b/src/gui/UserStatusSelector.qml index 6f1fac73f..eebcee586 100644 --- a/src/gui/UserStatusSelector.qml +++ b/src/gui/UserStatusSelector.qml @@ -323,19 +323,23 @@ ColumnLayout { Layout.alignment: Qt.AlignBottom UserStatusSelectorButton { - Layout.fillWidth: true + // Prevent being squashed by the other buttons with larger text + Layout.minimumWidth: implicitWidth + Layout.fillHeight: true primary: true text: qsTr("Cancel") onClicked: finished() } UserStatusSelectorButton { Layout.fillWidth: true + Layout.fillHeight: true primary: true text: qsTr("Clear status message") onClicked: userStatusSelectorModel.clearUserStatus() } UserStatusSelectorButton { Layout.fillWidth: true + Layout.fillHeight: true primary: true colored: true text: qsTr("Set status message") -- 2.30.2