adjust scaling

This commit is contained in:
Viktor Rådberg
2023-09-01 18:29:35 +02:00
parent a1a51b727e
commit 3d036e6026
4 changed files with 24 additions and 9 deletions

View File

@@ -311,14 +311,14 @@ const LifeCounter = ({
const fontSize =
player.settings.rotation === Rotation.SideFlipped ||
player.settings.rotation === Rotation.Side
? `clamp(6rem, ${size}vmax, 10rem)`
: `clamp(6rem, ${size}vmin, 10rem)`;
? `${size}vmax`
: `${size}vmin`;
const strokeWidth =
player.settings.rotation === Rotation.SideFlipped ||
player.settings.rotation === Rotation.Side
? `clamp(0.4rem, ${size / 20}vmax, 12rem)`
: `clamp(0.4rem, ${size / 20}vmin, 12rem)`;
? `${size / 20}vmax`
: `${size / 20}vmin`;
return (
<LifeCounterContentWrapper backgroundColor={backgroundColor}>