mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-29 06:08:48 +03:00
limit width of comboboxes and add bottomPadding
This commit is contained in:
parent
d941974e35
commit
4f8e6602c4
1 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue