fixed broken wallpaer tiling function

This commit is contained in:
2025-07-25 20:48:50 -04:00
parent 8654d12e42
commit 35f467e440
+5
View File
@@ -1769,6 +1769,8 @@
.getElementById("wallpaperColorPicker") .getElementById("wallpaperColorPicker")
.addEventListener("input", changeWallpaper, false); .addEventListener("input", changeWallpaper, false);
document document
.getElementById("wallpaperRepeatToggle")
.addEventListener("change", toggleWallpaperRepeat, false);
/** load container data */ /** load container data */
let zIndexMapData = JSON.parse(localStorage.getItem("zIndexMapData")) || []; let zIndexMapData = JSON.parse(localStorage.getItem("zIndexMapData")) || [];
@@ -2092,8 +2094,11 @@
repeatWallpaper = this.checked; repeatWallpaper = this.checked;
if (repeatWallpaper) { if (repeatWallpaper) {
document.body.style.backgroundSize = "contain"; document.body.style.backgroundSize = "contain";
document.body.style.backgroundRepeat = "repeat";
} else { } else {
document.body.style.backgroundSize = "cover"; document.body.style.backgroundSize = "cover";
document.body.style.backgroundRepeat = "no-repeat";
} }
} }