Stop card hover image tiling

This commit is contained in:
2026-02-02 23:46:55 +01:00
parent eee4f1f0e9
commit ea5c53d7e0

View File

@@ -687,11 +687,13 @@ function setupCardVisualHover(el, url) {
el.classList.remove("hovering"); el.classList.remove("hovering");
el.style.backgroundSize = ""; el.style.backgroundSize = "";
el.style.backgroundPosition = ""; el.style.backgroundPosition = "";
el.style.backgroundRepeat = "";
}; };
el.addEventListener("mouseenter", () => { el.addEventListener("mouseenter", () => {
el.classList.add("hovering"); el.classList.add("hovering");
el.style.backgroundSize = "auto"; el.style.backgroundSize = "auto";
el.style.backgroundRepeat = "no-repeat";
el.style.backgroundPosition = "center"; el.style.backgroundPosition = "center";
}); });