From 154acf1bab4583e670f8532b95e7505526a1c52d Mon Sep 17 00:00:00 2001 From: Marks Polakovs Date: Sat, 4 May 2024 10:14:47 +0100 Subject: [PATCH 1/2] fencing: fix double-touch --- scores-src/src/common/sports/rosesFencing/index.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scores-src/src/common/sports/rosesFencing/index.tsx b/scores-src/src/common/sports/rosesFencing/index.tsx index 96c5b89..baa7195 100644 --- a/scores-src/src/common/sports/rosesFencing/index.tsx +++ b/scores-src/src/common/sports/rosesFencing/index.tsx @@ -164,6 +164,8 @@ const slice = createSlice({ }, doubleTap: { reducer(state) { + state.scoreHome++; + state.scoreAway++; state.segmentPoints[state.segmentPoints.length - 1].push({ side: "home", player: null, From 0a2ac6ee3cf6abb61ce359a58ae7bd433bc08173 Mon Sep 17 00:00:00 2001 From: Marks Polakovs Date: Sat, 4 May 2024 10:24:19 +0100 Subject: [PATCH 2/2] Fix bout getting cut off --- .../src/graphics/americanFootball/Scoreboard/Scoreboard.tsx | 2 +- bundle-src/src/graphics/common/teamNameBox/index.module.css | 5 +++-- bundle-src/src/graphics/common/teamNameBox/index.tsx | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/bundle-src/src/graphics/americanFootball/Scoreboard/Scoreboard.tsx b/bundle-src/src/graphics/americanFootball/Scoreboard/Scoreboard.tsx index e5a65f1..47caef4 100644 --- a/bundle-src/src/graphics/americanFootball/Scoreboard/Scoreboard.tsx +++ b/bundle-src/src/graphics/americanFootball/Scoreboard/Scoreboard.tsx @@ -79,7 +79,7 @@ export function Scoreboard({ score={awayScore} /> diff --git a/bundle-src/src/graphics/common/teamNameBox/index.module.css b/bundle-src/src/graphics/common/teamNameBox/index.module.css index 3036b9a..6133496 100644 --- a/bundle-src/src/graphics/common/teamNameBox/index.module.css +++ b/bundle-src/src/graphics/common/teamNameBox/index.module.css @@ -1,5 +1,5 @@ .Background { - width: 94rem; + min-width: 94rem; height: 40rem; box-shadow: inset 0 7rem 1rem 0 rgba(255, 255, 255, 0.26); position: relative; @@ -29,8 +29,9 @@ } .Text { - width: 94rem; + min-width: 94rem; height: 40rem; + padding: 0 8rem; text-shadow: 0 0 6rem rgba(0, 0, 0, 0.35); font-family: OpenSans; font-size: 24rem; diff --git a/bundle-src/src/graphics/common/teamNameBox/index.tsx b/bundle-src/src/graphics/common/teamNameBox/index.tsx index 2db507a..004b6bf 100644 --- a/bundle-src/src/graphics/common/teamNameBox/index.tsx +++ b/bundle-src/src/graphics/common/teamNameBox/index.tsx @@ -36,7 +36,7 @@ export function NameBox(props: Props & React.HTMLAttributes) { /> )}
- {name.substring(0, 4).toUpperCase()} + {name.toUpperCase()}
);