Commit 80b72643 authored by Nate Graham's avatar Nate Graham
Browse files

kcms/users: Adjust for padding in overlay sheet

This commit fixes the right padding of the avatar sheet's grid view,
which otherwise can be overlapped by the scrollbar.

The commit is a backport for Plasma 5.24 of
!1468 (0c8abc18)
Which was squash-merged when its merge request was merged for Plasma
5.25. However this fix should be self-contained enough to backport to
the 5.24 LTS release.

BUG: 451031
FIXED-IN: 5.24.4
parent 829bfea7
Pipeline #154196 passed with stage
in 10 minutes and 40 seconds
......@@ -253,7 +253,7 @@ SimpleKCM {
columnSpacing: Kirigami.Units.smallSpacing
columns: {
// subtract gridunit from stackswticher width to roughly compensate for slight overlap on tightly fit grids
return Math.floor((stackSwitcher.width - Kirigami.Units.gridUnit) / ((Kirigami.Units.gridUnit * 6) + picturesColumn.columnSpacing))
return Math.floor((stackSwitcher.width - (Kirigami.Units.gridUnit+(Kirigami.Units.largeSpacing*2))) / ((Kirigami.Units.gridUnit * 6) + picturesColumn.columnSpacing))
}
Layout.fillWidth: true
......@@ -356,7 +356,7 @@ SimpleKCM {
rowSpacing: Kirigami.Units.smallSpacing
columnSpacing: Kirigami.Units.smallSpacing
columns: {
return Math.floor((stackSwitcher.width) / (Kirigami.Units.gridUnit * 6))
return Math.floor((stackSwitcher.width - (Kirigami.Units.gridUnit+(Kirigami.Units.largeSpacing*2))) / (Kirigami.Units.gridUnit * 6))
}
Layout.fillWidth: true
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment