Fix label alignments on share view checkboxes

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
Claudio Cambra 2024-11-15 18:21:15 +08:00
parent d757343628
commit 17d3930590
No known key found for this signature in database
GPG key ID: C839200C384636B0

View file

@ -260,6 +260,7 @@ Page {
readonly property int itemPadding: Style.smallSpacing readonly property int itemPadding: Style.smallSpacing
width: parent.width width: parent.width
spacing: Style.smallSpacing
RowLayout { RowLayout {
Layout.fillWidth: true Layout.fillWidth: true
@ -313,7 +314,8 @@ Page {
visible: active visible: active
sourceComponent: CheckBox { sourceComponent: CheckBox {
spacing: scrollContentsColumn.indicatorSpacing spacing: scrollContentsColumn.indicatorSpacing
padding: scrollContentsColumn.itemPadding leftPadding: scrollContentsColumn.itemPadding
rightPadding: scrollContentsColumn.itemPadding
indicator.width: scrollContentsColumn.indicatorItemWidth indicator.width: scrollContentsColumn.indicatorItemWidth
indicator.height: scrollContentsColumn.indicatorItemWidth indicator.height: scrollContentsColumn.indicatorItemWidth
@ -339,7 +341,7 @@ Page {
visible: active visible: active
sourceComponent: ColumnLayout { sourceComponent: ColumnLayout {
id: permissionRadioButtonsLayout id: permissionRadioButtonsLayout
spacing: 0 spacing: Layout.smallSpacing
width: parent.width width: parent.width
ButtonGroup { ButtonGroup {
@ -354,7 +356,8 @@ Page {
checked: root.currentPermissionMode === permissionMode checked: root.currentPermissionMode === permissionMode
text: qsTr("View only") text: qsTr("View only")
spacing: scrollContentsColumn.indicatorSpacing spacing: scrollContentsColumn.indicatorSpacing
padding: scrollContentsColumn.itemPadding leftPadding: scrollContentsColumn.itemPadding
rightPadding: scrollContentsColumn.itemPadding
onClicked: root.permissionModeChanged(permissionMode) onClicked: root.permissionModeChanged(permissionMode)
} }
@ -366,7 +369,8 @@ Page {
checked: root.currentPermissionMode === permissionMode checked: root.currentPermissionMode === permissionMode
text: qsTr("Allow upload and editing") text: qsTr("Allow upload and editing")
spacing: scrollContentsColumn.indicatorSpacing spacing: scrollContentsColumn.indicatorSpacing
padding: scrollContentsColumn.itemPadding leftPadding: scrollContentsColumn.itemPadding
rightPadding: scrollContentsColumn.itemPadding
onClicked: root.permissionModeChanged(permissionMode) onClicked: root.permissionModeChanged(permissionMode)
} }
@ -378,7 +382,8 @@ Page {
checked: root.currentPermissionMode === permissionMode checked: root.currentPermissionMode === permissionMode
text: qsTr("File drop (upload only)") text: qsTr("File drop (upload only)")
spacing: scrollContentsColumn.indicatorSpacing spacing: scrollContentsColumn.indicatorSpacing
padding: scrollContentsColumn.itemPadding leftPadding: scrollContentsColumn.itemPadding
rightPadding: scrollContentsColumn.itemPadding
onClicked: root.permissionModeChanged(permissionMode) onClicked: root.permissionModeChanged(permissionMode)
} }
@ -388,7 +393,8 @@ Page {
Layout.fillWidth: true Layout.fillWidth: true
spacing: scrollContentsColumn.indicatorSpacing spacing: scrollContentsColumn.indicatorSpacing
padding: scrollContentsColumn.itemPadding leftPadding: scrollContentsColumn.itemPadding
rightPadding: scrollContentsColumn.itemPadding
indicator.width: scrollContentsColumn.indicatorItemWidth indicator.width: scrollContentsColumn.indicatorItemWidth
indicator.height: scrollContentsColumn.indicatorItemWidth indicator.height: scrollContentsColumn.indicatorItemWidth
@ -427,7 +433,8 @@ Page {
anchors.right: parent.right anchors.right: parent.right
spacing: scrollContentsColumn.indicatorSpacing spacing: scrollContentsColumn.indicatorSpacing
padding: scrollContentsColumn.itemPadding leftPadding: scrollContentsColumn.itemPadding
rightPadding: scrollContentsColumn.itemPadding
indicator.width: scrollContentsColumn.indicatorItemWidth indicator.width: scrollContentsColumn.indicatorItemWidth
indicator.height: scrollContentsColumn.indicatorItemWidth indicator.height: scrollContentsColumn.indicatorItemWidth
@ -452,7 +459,8 @@ Page {
Layout.fillWidth: true Layout.fillWidth: true
spacing: scrollContentsColumn.indicatorSpacing spacing: scrollContentsColumn.indicatorSpacing
padding: scrollContentsColumn.itemPadding leftPadding: scrollContentsColumn.itemPadding
rightPadding: scrollContentsColumn.itemPadding
indicator.width: scrollContentsColumn.indicatorItemWidth indicator.width: scrollContentsColumn.indicatorItemWidth
indicator.height: scrollContentsColumn.indicatorItemWidth indicator.height: scrollContentsColumn.indicatorItemWidth
@ -561,7 +569,8 @@ Page {
Layout.fillWidth: true Layout.fillWidth: true
spacing: scrollContentsColumn.indicatorSpacing spacing: scrollContentsColumn.indicatorSpacing
padding: scrollContentsColumn.itemPadding leftPadding: scrollContentsColumn.itemPadding
rightPadding: scrollContentsColumn.itemPadding
indicator.width: scrollContentsColumn.indicatorItemWidth indicator.width: scrollContentsColumn.indicatorItemWidth
indicator.height: scrollContentsColumn.indicatorItemWidth indicator.height: scrollContentsColumn.indicatorItemWidth
@ -645,7 +654,8 @@ Page {
Layout.fillWidth: true Layout.fillWidth: true
spacing: scrollContentsColumn.indicatorSpacing spacing: scrollContentsColumn.indicatorSpacing
padding: scrollContentsColumn.itemPadding leftPadding: scrollContentsColumn.itemPadding
rightPadding: scrollContentsColumn.itemPadding
indicator.width: scrollContentsColumn.indicatorItemWidth indicator.width: scrollContentsColumn.indicatorItemWidth
indicator.height: scrollContentsColumn.indicatorItemWidth indicator.height: scrollContentsColumn.indicatorItemWidth