From dbd97dcfd4a838a03f99a43d4b7ad87daa8056f7 Mon Sep 17 00:00:00 2001 From: Daithi Hearn Date: Thu, 18 May 2023 08:50:43 +0200 Subject: [PATCH 1/3] Fixing single player leaderboard on mobile --- src/components/Leaderboard/SinglesLeaderboard.tsx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/components/Leaderboard/SinglesLeaderboard.tsx b/src/components/Leaderboard/SinglesLeaderboard.tsx index 181e95b..3279fc7 100644 --- a/src/components/Leaderboard/SinglesLeaderboard.tsx +++ b/src/components/Leaderboard/SinglesLeaderboard.tsx @@ -10,6 +10,7 @@ import { ListItemIcon, ListItemText, ListItemSecondaryAction, + Box, } from "@mui/material" interface LeaderboardItem { @@ -75,8 +76,8 @@ const SinglesLeaderboard = () => { } return ( - - + + {leaderboardData.map((item, index) => ( @@ -90,7 +91,7 @@ const SinglesLeaderboard = () => { @@ -107,7 +108,7 @@ const SinglesLeaderboard = () => { ))} - + ) } From 29083664d462072d716e8f1d7e22008b0ae5cc64 Mon Sep 17 00:00:00 2001 From: Daithi Hearn Date: Thu, 18 May 2023 09:06:37 +0200 Subject: [PATCH 2/3] Mobile style improvements --- .../Game/Actions/ActionsWrapper.tsx | 2 +- .../Game/Actions/ThrowCardsWarningModal.tsx | 2 +- src/components/Game/PlayerCard.tsx | 5 +- src/components/Game/PlayersAndCards.tsx | 52 +++++++++++++------ src/pages/Game/_game.scss | 13 ++--- 5 files changed, 46 insertions(+), 28 deletions(-) diff --git a/src/components/Game/Actions/ActionsWrapper.tsx b/src/components/Game/Actions/ActionsWrapper.tsx index 7cfabfa..bdf24a2 100644 --- a/src/components/Game/Actions/ActionsWrapper.tsx +++ b/src/components/Game/Actions/ActionsWrapper.tsx @@ -18,7 +18,7 @@ const ActionsWrapper = () => { const isCalled = useAppSelector(getIsRoundCalled) return ( - + {isCalling && } {isBuying && } diff --git a/src/components/Game/Actions/ThrowCardsWarningModal.tsx b/src/components/Game/Actions/ThrowCardsWarningModal.tsx index 9f40a87..ea59058 100644 --- a/src/components/Game/Actions/ThrowCardsWarningModal.tsx +++ b/src/components/Game/Actions/ThrowCardsWarningModal.tsx @@ -67,7 +67,7 @@ const ThrowCardsWarningModal: React.FC = ({ ))} - +