update song diff
All checks were successful
deploy / deploy (push) Successful in 53s

This commit is contained in:
Lee 2023-10-26 18:07:30 +01:00
parent b17a5ecac6
commit 9d0bf23144

@ -28,10 +28,6 @@ export default function Score({ score, player, leaderboard }: ScoreProps) {
const diffName = scoresaberDifficultyNumberToName( const diffName = scoresaberDifficultyNumberToName(
leaderboard.difficulty.difficulty, leaderboard.difficulty.difficulty,
); );
const diffNameShort = scoresaberDifficultyNumberToName(
leaderboard.difficulty.difficulty,
true,
);
const diffColor = songDifficultyToColor(diffName); const diffColor = songDifficultyToColor(diffName);
return ( return (
@ -50,7 +46,7 @@ export default function Score({ score, player, leaderboard }: ScoreProps) {
</div> </div>
{/* Song Image */} {/* Song Image */}
<div className="flex w-full items-center gap-2"> <div className="flex w-full items-center gap-2">
<div className="flex justify-end"> <div className="flex justify-center">
<Image <Image
src={leaderboard.coverImage} src={leaderboard.coverImage}
alt={leaderboard.songName} alt={leaderboard.songName}
@ -60,7 +56,7 @@ export default function Score({ score, player, leaderboard }: ScoreProps) {
loading="lazy" loading="lazy"
/> />
<div <div
className="absolute ml-3 mt-12 cursor-default divide-x divide-y rounded-sm pl-[3px] pr-[3px] text-[0.8rem] opacity-90" className="absolute mt-12 cursor-default divide-x divide-y rounded-sm pl-[3px] pr-[3px] text-[0.8rem] opacity-90"
style={{ style={{
backgroundColor: diffColor, backgroundColor: diffColor,
}} }}
@ -72,7 +68,7 @@ export default function Score({ score, player, leaderboard }: ScoreProps) {
{leaderboard.stars.toFixed(2)} {leaderboard.stars.toFixed(2)}
</div> </div>
) : ( ) : (
diffNameShort diffName
)} )}
</p> </p>
</div> </div>