From 5d35a323e099485a32eb5901c531bd9f6475c2bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Viktor=20R=C3=A5dberg?= Date: Fri, 4 Aug 2023 14:14:40 +0200 Subject: [PATCH] more styling --- src/Components/LifeCounter/LifeCounter.tsx | 13 +++--- src/Components/PlayerMenu/Settings.tsx | 48 +++++++++++----------- 2 files changed, 30 insertions(+), 31 deletions(-) diff --git a/src/Components/LifeCounter/LifeCounter.tsx b/src/Components/LifeCounter/LifeCounter.tsx index dde0d79..a947025 100644 --- a/src/Components/LifeCounter/LifeCounter.tsx +++ b/src/Components/LifeCounter/LifeCounter.tsx @@ -81,12 +81,8 @@ const LifeCountainer = styled.div<{ const LifeCounterTextContainer = styled.p<{ rotation: Rotation; }>` - /* top: 50%; - left: 50%; - translate: -50% -50%; margin: 0; - padding: 0; */ - + padding: 0; pointer-events: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; @@ -101,6 +97,7 @@ const LifeCounterTextContainer = styled.p<{ ) { return css` rotate: 270deg; + margin-right: 25%; `; } }} @@ -168,9 +165,9 @@ const LifeCounter = ({ return () => clearTimeout(timer); }, [recentDifference]); - const size = 20; - const fontSize = `${size}vmax`; - const strokeWidth = `${size / 20}vmax`; + const size = 30; + const fontSize = `${size}vmin`; + const strokeWidth = `${size / 20}vmin`; return ( diff --git a/src/Components/PlayerMenu/Settings.tsx b/src/Components/PlayerMenu/Settings.tsx index d331c4f..ce38e47 100644 --- a/src/Components/PlayerMenu/Settings.tsx +++ b/src/Components/PlayerMenu/Settings.tsx @@ -174,29 +174,31 @@ const Settings = ({ player, onChange, resetCurrentGame }: SettingsProps) => { onChange={handleColorChange} /> - - - } - checkedIcon={ - - } - onChange={handleSettingsChange} - /> - + {player.settings.useCommanderDamage && ( + + + } + checkedIcon={ + + } + onChange={handleSettingsChange} + /> + + )}