From c37661d7bdb3c0aa0f4fdbd0eaab4e50831c13c6 Mon Sep 17 00:00:00 2001 From: Claudio Cambra Date: Fri, 15 Nov 2024 18:21:15 +0800 Subject: [PATCH] Fix label alignments on share view checkboxes Signed-off-by: Claudio Cambra --- src/gui/filedetails/ShareDetailsPage.qml | 30 ++++++++++++++++-------- 1 file changed, 20 insertions(+), 10 deletions(-) diff --git a/src/gui/filedetails/ShareDetailsPage.qml b/src/gui/filedetails/ShareDetailsPage.qml index 4a78ffe47253..1ac69e1b38cb 100644 --- a/src/gui/filedetails/ShareDetailsPage.qml +++ b/src/gui/filedetails/ShareDetailsPage.qml @@ -260,6 +260,7 @@ Page { readonly property int itemPadding: Style.smallSpacing width: parent.width + spacing: Style.smallSpacing RowLayout { Layout.fillWidth: true @@ -313,7 +314,8 @@ Page { visible: active sourceComponent: CheckBox { spacing: scrollContentsColumn.indicatorSpacing - padding: scrollContentsColumn.itemPadding + leftPadding: scrollContentsColumn.itemPadding + rightPadding: scrollContentsColumn.itemPadding indicator.width: scrollContentsColumn.indicatorItemWidth indicator.height: scrollContentsColumn.indicatorItemWidth @@ -339,7 +341,7 @@ Page { visible: active sourceComponent: ColumnLayout { id: permissionRadioButtonsLayout - spacing: 0 + spacing: Layout.smallSpacing width: parent.width ButtonGroup { @@ -354,7 +356,8 @@ Page { checked: root.currentPermissionMode === permissionMode text: qsTr("View only") spacing: scrollContentsColumn.indicatorSpacing - padding: scrollContentsColumn.itemPadding + leftPadding: scrollContentsColumn.itemPadding + rightPadding: scrollContentsColumn.itemPadding onClicked: root.permissionModeChanged(permissionMode) } @@ -366,7 +369,8 @@ Page { checked: root.currentPermissionMode === permissionMode text: qsTr("Allow upload and editing") spacing: scrollContentsColumn.indicatorSpacing - padding: scrollContentsColumn.itemPadding + leftPadding: scrollContentsColumn.itemPadding + rightPadding: scrollContentsColumn.itemPadding onClicked: root.permissionModeChanged(permissionMode) } @@ -378,7 +382,8 @@ Page { checked: root.currentPermissionMode === permissionMode text: qsTr("File drop (upload only)") spacing: scrollContentsColumn.indicatorSpacing - padding: scrollContentsColumn.itemPadding + leftPadding: scrollContentsColumn.itemPadding + rightPadding: scrollContentsColumn.itemPadding onClicked: root.permissionModeChanged(permissionMode) } @@ -388,7 +393,8 @@ Page { Layout.fillWidth: true spacing: scrollContentsColumn.indicatorSpacing - padding: scrollContentsColumn.itemPadding + leftPadding: scrollContentsColumn.itemPadding + rightPadding: scrollContentsColumn.itemPadding indicator.width: scrollContentsColumn.indicatorItemWidth indicator.height: scrollContentsColumn.indicatorItemWidth @@ -427,7 +433,8 @@ Page { anchors.right: parent.right spacing: scrollContentsColumn.indicatorSpacing - padding: scrollContentsColumn.itemPadding + leftPadding: scrollContentsColumn.itemPadding + rightPadding: scrollContentsColumn.itemPadding indicator.width: scrollContentsColumn.indicatorItemWidth indicator.height: scrollContentsColumn.indicatorItemWidth @@ -452,7 +459,8 @@ Page { Layout.fillWidth: true spacing: scrollContentsColumn.indicatorSpacing - padding: scrollContentsColumn.itemPadding + leftPadding: scrollContentsColumn.itemPadding + rightPadding: scrollContentsColumn.itemPadding indicator.width: scrollContentsColumn.indicatorItemWidth indicator.height: scrollContentsColumn.indicatorItemWidth @@ -561,7 +569,8 @@ Page { Layout.fillWidth: true spacing: scrollContentsColumn.indicatorSpacing - padding: scrollContentsColumn.itemPadding + leftPadding: scrollContentsColumn.itemPadding + rightPadding: scrollContentsColumn.itemPadding indicator.width: scrollContentsColumn.indicatorItemWidth indicator.height: scrollContentsColumn.indicatorItemWidth @@ -645,7 +654,8 @@ Page { Layout.fillWidth: true spacing: scrollContentsColumn.indicatorSpacing - padding: scrollContentsColumn.itemPadding + leftPadding: scrollContentsColumn.itemPadding + rightPadding: scrollContentsColumn.itemPadding indicator.width: scrollContentsColumn.indicatorItemWidth indicator.height: scrollContentsColumn.indicatorItemWidth