mirror of
https://github.com/Vikeo/LifeTrinket.git
synced 2025-11-18 16:58:01 +00:00
correct rotation
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user