Merge pull request #434 from lonerOrz/fix/color-scheme-layout

fix(settings): make color scheme grid layout responsive
This commit is contained in:
Lemmy
2025-10-06 17:17:36 -04:00
committed by GitHub
+1 -1
View File
@@ -220,7 +220,7 @@ ColumnLayout {
// Color Schemes Grid
GridLayout {
columns: 3
columns: Math.max(1, Math.floor((root.width + columnSpacing) / (222 * scaling + columnSpacing)))
rowSpacing: Style.marginM * scaling
columnSpacing: Style.marginM * scaling
Layout.fillWidth: true