Skip to content

Commit

Permalink
fix missing units for falling star starting width range
Browse files Browse the repository at this point in the history
  • Loading branch information
csc530 authored Aug 17, 2024
1 parent 7fd8dcd commit 42c163d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/FallingStars.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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`;
Expand Down

1 comment on commit 42c163d

@vercel
Copy link

@vercel vercel bot commented on 42c163d Aug 17, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.