Просмотр исходного кода

Merge pull request #4844 from nextcloud/bugfix/clear-combo-label-width

Ensure that clear status message combo box is at least implicit width
Claudio Cambra 3 лет назад
Родитель
Сommit
5b4ea2fd54
1 измененных файлов с 12 добавлено и 1 удалено
  1. 12 1
      src/gui/UserStatusSelector.qml

+ 12 - 1
src/gui/UserStatusSelector.qml

@@ -280,16 +280,27 @@ ColumnLayout {
 
             RowLayout {
                 Layout.fillWidth: true
-                spacing: Style.standardSpacing
+                spacing: Style.smallSpacing
 
                 Label {
+                    id: clearComboLabel
+
+                    Layout.fillWidth: true
+                    Layout.fillHeight: true
+                    verticalAlignment: Text.AlignVCenter
+
                     text: qsTr("Clear status message after")
                     color: Style.ncTextColor
+                    wrapMode: Text.Wrap
                 }
 
                 BasicComboBox {
                     id: clearComboBox
+
                     Layout.fillWidth: true
+                    Layout.fillHeight: true
+                    Layout.minimumWidth: implicitWidth
+
                     model: userStatusSelectorModel.clearStageTypes
                     textRole: "display"
                     valueRole: "clearStageType"