From f089db674ba76aa4b1ecbc66c0f0589f5a528d93 Mon Sep 17 00:00:00 2001 From: BrownKnight Date: Mon, 26 Aug 2024 21:28:46 +0100 Subject: [PATCH] Dynamically size answers for small screens --- ui/src/grid/InteractiveGrid.tsx | 11 +++++++++-- ui/src/timer-battle/TimerBattleScreen.tsx | 16 ++++++++++------ 2 files changed, 19 insertions(+), 8 deletions(-) diff --git a/ui/src/grid/InteractiveGrid.tsx b/ui/src/grid/InteractiveGrid.tsx index d22a4e6..eef326e 100644 --- a/ui/src/grid/InteractiveGrid.tsx +++ b/ui/src/grid/InteractiveGrid.tsx @@ -59,7 +59,12 @@ export default function InteractiveGrid({ grid, onCorrect, onIncorrect }: Props) {category.answers.map((word, j) => { const color = "bg-green-700 text-white"; return ( -
+
7 ? "text-[0.6rem]" : "text-sm" + } md:text-lg ${color}`} + > {word}
); @@ -75,7 +80,9 @@ export default function InteractiveGrid({ grid, onCorrect, onIncorrect }: Props) return ( -
+ {isHost && ( +
+

Host Controls

+ +
+ )}