increased star size on mobile devices

This commit is contained in:
Ludwig Lehnert 2025-04-14 22:47:20 +02:00
parent f629ae2128
commit 145774b2ad

View File

@ -23,7 +23,7 @@
star.src = Star; star.src = Star;
star.classList.add("star"); star.classList.add("star");
star.style.width = `${sizes[i]}vw`; star.style.width = `max(${sizes[i]}vw, ${sizes[i]}vh)`;
star.style.position = "absolute"; star.style.position = "absolute";
star.style.left = `${100 * x}vw`; star.style.left = `${100 * x}vw`;
star.style.top = `${100 * y}vh`; star.style.top = `${100 * y}vh`;