From c8698c4151660b7298871d72763b25e92366eb22 Mon Sep 17 00:00:00 2001 From: ay8s Date: Sat, 4 Jan 2025 16:52:33 -0800 Subject: [PATCH] Remove wobble --- src/components/Race/Race.tsx | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/components/Race/Race.tsx b/src/components/Race/Race.tsx index 81829390..eb443245 100644 --- a/src/components/Race/Race.tsx +++ b/src/components/Race/Race.tsx @@ -98,16 +98,18 @@ const Race = ({ - - - {raceTitle} - - {isNextRace && !item.tbc && !item.canceled && } + +
+
{raceTitle}
+
+ {isNextRace && !item.tbc && !item.canceled && } - {item.tbc && } + {item.tbc && } - {item.canceled && } -
+ {item.canceled && } {!hasMultipleFeaturedEvents ? ( <> @@ -179,13 +181,11 @@ const Race = ({ keys.forEach(function (sessionKey, index) { // Translate session title or fallback to session key - - - + const sessionTitle = t(`schedule.${sessionKey}`) != `All.schedule.${sessionKey}` ? t(`schedule.${sessionKey}`) - : sessionKey.replace(/./,x=>x.toUpperCase()) + : sessionKey.replace(/./, (x) => x.toUpperCase()); const hasOccured = dayjs(props.item.sessions[sessionKey]) .add(2, 'hours')