From 42c163d86cc5fde17c36f34c15e8f2e7606c2ca9 Mon Sep 17 00:00:00 2001 From: Christofer <77406318+csc530@users.noreply.github.com> Date: Fri, 16 Aug 2024 21:05:22 -0400 Subject: [PATCH] fix missing units for falling star starting width range --- src/components/FallingStars.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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`;