mirror of
https://github.com/Vikeo/LifeTrinket.git
synced 2025-11-17 16:27:59 +00:00
correct rotation
This commit is contained in:
@@ -226,8 +226,17 @@ const LifeCounter = ({ player, opponents, matchScore }: LifeCounterProps) => {
|
||||
<PlayerLostWrapper $rotation={player.settings.rotation} />
|
||||
)}
|
||||
{matchScore !== undefined && matchScore > 0 && (
|
||||
<MatchScoreBadge $rotation={player.settings.rotation}>
|
||||
<div style={{ rotate: `${-calcRotation}deg` }}>{matchScore}</div>
|
||||
<MatchScoreBadge
|
||||
$rotation={player.settings.rotation}
|
||||
style={{
|
||||
rotate:
|
||||
player.settings.rotation === Rotation.Side ||
|
||||
player.settings.rotation === Rotation.SideFlipped
|
||||
? `-90deg`
|
||||
: '0deg',
|
||||
}}
|
||||
>
|
||||
{matchScore}
|
||||
</MatchScoreBadge>
|
||||
)}
|
||||
<CommanderDamageBar
|
||||
|
||||
Reference in New Issue
Block a user