From a79ebaf044b512194702e20b01800768c44de4ef Mon Sep 17 00:00:00 2001 From: datalore Date: Sat, 17 Feb 2024 19:04:31 +0100 Subject: [PATCH] feat: Improved layout on mobile devices --- src/app/components/bingo.tsx | 2 +- src/app/components/bingocontroller.tsx | 2 +- src/app/components/bingoitem.tsx | 4 ++++ 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/app/components/bingo.tsx b/src/app/components/bingo.tsx index a952d80..4040892 100644 --- a/src/app/components/bingo.tsx +++ b/src/app/components/bingo.tsx @@ -13,7 +13,7 @@ export default function Bingo({size, items}: Props){ rows[i] = activeItems.slice(i * size, (i + 1) * size); } return( - +
{rows.map((item, index) => )} diff --git a/src/app/components/bingocontroller.tsx b/src/app/components/bingocontroller.tsx index eca3663..059c788 100644 --- a/src/app/components/bingocontroller.tsx +++ b/src/app/components/bingocontroller.tsx @@ -21,7 +21,7 @@ export default function BingoController({buzzwords} : {buzzwords?: string[]}){ const sizeError = (items.length < size); return( <> -
+
setSize(+s)}/> diff --git a/src/app/components/bingoitem.tsx b/src/app/components/bingoitem.tsx index e72c404..cca8e48 100644 --- a/src/app/components/bingoitem.tsx +++ b/src/app/components/bingoitem.tsx @@ -9,6 +9,10 @@ export default function BingoItem({text}: Props){ const [clicked, setClicked] = React.useState(false); return( +<<<<<<< HEAD
+======= + +>>>>>>> c0e15bc (feat: Improved layout on mobile devices) ); }
setClicked(!clicked)}>{text} setClicked(!clicked)}>{text}