Skip to content

Commit

Permalink
Fix label alignments on share view checkboxes
Browse files Browse the repository at this point in the history
Signed-off-by: Claudio Cambra <[email protected]>
  • Loading branch information
claucambra committed Nov 15, 2024
1 parent c768312 commit c37661d
Showing 1 changed file with 20 additions and 10 deletions.
30 changes: 20 additions & 10 deletions src/gui/filedetails/ShareDetailsPage.qml
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,7 @@ Page {
readonly property int itemPadding: Style.smallSpacing

width: parent.width
spacing: Style.smallSpacing

RowLayout {
Layout.fillWidth: true
Expand Down Expand Up @@ -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

Expand All @@ -339,7 +341,7 @@ Page {
visible: active
sourceComponent: ColumnLayout {
id: permissionRadioButtonsLayout
spacing: 0
spacing: Layout.smallSpacing
width: parent.width

ButtonGroup {
Expand All @@ -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)
}

Expand All @@ -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)
}

Expand All @@ -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)
}

Expand All @@ -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

Expand Down Expand Up @@ -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

Expand All @@ -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

Expand Down Expand Up @@ -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

Expand Down Expand Up @@ -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

Expand Down

0 comments on commit c37661d

Please sign in to comment.