Stop card hover image tiling
This commit is contained in:
@@ -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";
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user