Prevent the 'Cancel' button of the user status selector getting squashed
authorClaudio Cambra <claudio.cambra@gmail.com>
Wed, 10 Aug 2022 15:57:48 +0000 (17:57 +0200)
committerClaudio Cambra <claudio.cambra@gmail.com>
Wed, 17 Aug 2022 19:08:25 +0000 (21:08 +0200)
Signed-off-by: Claudio Cambra <claudio.cambra@gmail.com>
src/gui/UserStatusSelector.qml

index 6f1fac73ff09101de12fa7e6feb5aecba1b34e40..eebcee586540b7448d49dcd2c458ae2387a8c4f8 100644 (file)
@@ -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")