launcher: limit width to less of screen

This commit is contained in:
2 * r + 2 * t 2025-05-20 16:15:03 +08:00
parent 3b31c2e1c8
commit 607dc1311d

View file

@ -11,7 +11,7 @@ PathView {
required property TextField search
required property PersistentProperties visibilities
readonly property int numItems: {
const screenWidth = QsWindow.window?.screen.width - BorderConfig.thickness * 2 - BorderConfig.rounding * 4 - Appearance.padding.large * 2;
const screenWidth = QsWindow.window?.screen.width * 0.8;
if (!screenWidth)
return 0;
const itemWidth = LauncherConfig.sizes.wallpaperWidth * 0.8;