diff --git a/src/components/FallingStars.vue b/src/components/FallingStars.vue index a2b05b8..857b397 100644 --- a/src/components/FallingStars.vue +++ b/src/components/FallingStars.vue @@ -71,7 +71,7 @@ star.classList.add('fa-solid', 'fa-star', 'star'); star.style.position = 'absolute'; star.style.top = '-16px'; - star.style.left = Math.max(skyRef.value?.clientWidth || 0, window.innerWidth || 0); + star.style.left = Math.max(skyRef.value?.clientWidth || 0, window.innerWidth || 0) + 'px'; star.style.fontSize = props.size + 'px'; star.style.color = props.colour ?? 'white'; star.style.animation = `starfallAnimation ${props.duration}s linear forwards`;