diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-09-12 18:18:27 +1000 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-09-12 18:18:27 +1000 |
| commit | 3d6e335030eb1cb812d4815de628896c73a39ad4 (patch) | |
| tree | bc5d8411d316441f6974036ae822d42675da3ca2 | |
| parent | launcher: loader content (diff) | |
| download | caelestia-shell-3d6e335030eb1cb812d4815de628896c73a39ad4.tar.gz caelestia-shell-3d6e335030eb1cb812d4815de628896c73a39ad4.tar.bz2 caelestia-shell-3d6e335030eb1cb812d4815de628896c73a39ad4.zip | |
launcher: fix exclusion with utilities
| -rw-r--r-- | modules/launcher/WallpaperList.qml | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/modules/launcher/WallpaperList.qml b/modules/launcher/WallpaperList.qml index 874111d..75916df 100644 --- a/modules/launcher/WallpaperList.qml +++ b/modules/launcher/WallpaperList.qml @@ -23,10 +23,13 @@ PathView { return 0; // Screen width - 4x outer rounding - 2x max side thickness (cause centered) - let outerMargins = Math.max(Config.border.thickness, panels.bar.implicitWidth); + const barMargins = Math.max(Config.border.thickness, panels.bar.implicitWidth); + let outerMargins = 0; if (panels.popouts.hasCurrent && panels.popouts.currentCenter + panels.popouts.nonAnimHeight / 2 > screen.height - content.implicitHeight - Config.border.thickness * 2) - outerMargins = panels.bar.implicitWidth + panels.popouts.nonAnimWidth; - const maxWidth = screen.width - Config.border.rounding * 4 - outerMargins * 2; + outerMargins = panels.popouts.nonAnimWidth; + if (visibilities.utilities && panels.utilities.implicitWidth > outerMargins) + outerMargins = panels.utilities.implicitWidth; + const maxWidth = screen.width - Config.border.rounding * 4 - (barMargins + outerMargins) * 2; if (maxWidth <= 0) return 0; |