increased star size on mobile devices
This commit is contained in:
parent
f629ae2128
commit
145774b2ad
@ -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`;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user