correct rotation

This commit is contained in:
Viktor Rådberg
2025-11-17 00:26:42 +01:00
parent 60371264b1
commit e3d0cba637

View File

@@ -226,8 +226,17 @@ const LifeCounter = ({ player, opponents, matchScore }: LifeCounterProps) => {
<PlayerLostWrapper $rotation={player.settings.rotation} /> <PlayerLostWrapper $rotation={player.settings.rotation} />
)} )}
{matchScore !== undefined && matchScore > 0 && ( {matchScore !== undefined && matchScore > 0 && (
<MatchScoreBadge $rotation={player.settings.rotation}> <MatchScoreBadge
<div style={{ rotate: `${-calcRotation}deg` }}>{matchScore}</div> $rotation={player.settings.rotation}
style={{
rotate:
player.settings.rotation === Rotation.Side ||
player.settings.rotation === Rotation.SideFlipped
? `-90deg`
: '0deg',
}}
>
{matchScore}
</MatchScoreBadge> </MatchScoreBadge>
)} )}
<CommanderDamageBar <CommanderDamageBar