diff options
author | Malte E <malte.e@mailbox.org> | 2022-02-20 09:45:37 +0100 |
---|---|---|
committer | Malte E <malte.e@mailbox.org> | 2022-02-20 09:45:37 +0100 |
commit | 4f8e6602c491606369a2bafb711a08352f9215d7 (patch) | |
tree | 264a67dfd8cb65e9948f3953a661ec94515d076b /resources/qml/pages | |
parent | Simplify logic to suppress wheel events (diff) | |
download | nheko-4f8e6602c491606369a2bafb711a08352f9215d7.tar.xz |
limit width of comboboxes and add bottomPadding
Diffstat (limited to 'resources/qml/pages')
-rw-r--r-- | resources/qml/pages/UserSettingsPage.qml | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/resources/qml/pages/UserSettingsPage.qml b/resources/qml/pages/UserSettingsPage.qml index d6de7e4c..6151e067 100644 --- a/resources/qml/pages/UserSettingsPage.qml +++ b/resources/qml/pages/UserSettingsPage.qml @@ -25,10 +25,9 @@ Rectangle { palette: Nheko.colors ScrollBar.horizontal.visible: false anchors.fill: parent - //anchors.margins: Nheko.paddingLarge // padding right of the scrollbar is ugly anyway - anchors.topMargin: (collapsed? backButton.height : 0) + Nheko.paddingMedium - anchors.leftMargin: collapsed? Nheko.paddingMedium : Nheko.paddingLarge - + anchors.topMargin: (collapsed? backButton.height : 0)+Nheko.paddingLarge + leftPadding: collapsed? Nheko.paddingMedium : Nheko.paddingLarge + bottomPadding: Nheko.paddingLarge contentWidth: availableWidth ColumnLayout { @@ -82,6 +81,7 @@ Rectangle { Layout.columnSpan: (model.type == UserSettingsModel.SectionTitle && !userSettingsDialog.collapsed) ? 2 : 1 Layout.preferredHeight: child.height Layout.preferredWidth: Math.min(child.implicitWidth, child.width || 1000) + Layout.maximumWidth: model.type == UserSettingsModel.SectionTitle ? Number.POSITIVE_INFINITY : 400 Layout.fillWidth: model.type == UserSettingsModel.SectionTitle || model.type == UserSettingsModel.Options || model.type == UserSettingsModel.Number Layout.rightMargin: model.type == UserSettingsModel.SectionTitle ? 0 : Nheko.paddingMedium |