Skip to content

Commit

Permalink
use css var for positioning
Browse files Browse the repository at this point in the history
  • Loading branch information
SheepTester committed Oct 22, 2024
1 parent 09bcb05 commit 14a14c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/onboarding/Leaderboard/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ const Leaderboard = ({ user }: LeaderboardProps) => {
even={name !== userName}
className={styles.row}
style={{
transform: `translateY(${position * 4}rem)`,
transform: `translateY(calc(${position} * var(--leaderboard-height)))`,
zIndex: name === userName ? '5' : undefined,
}}
/>
Expand Down

0 comments on commit 14a14c7

Please sign in to comment.