Skip to content

Commit

Permalink
slightly better mobile ui for leaderboard page
Browse files Browse the repository at this point in the history
  • Loading branch information
cmyui committed Jul 15, 2024
1 parent 8b96004 commit f5727ac
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
7 changes: 5 additions & 2 deletions src/components/GlobalUserLeaderboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,12 @@ export const GlobalUserLeaderboard = (): JSX.Element => {
if (loading || !leaderboardData) {
return (
<>
<Stack direction="row" justifyContent="space-between">
<Stack
direction={{ xs: "column", sm: "row" }}
justifyContent="space-between"
>
{/* Game Modes */}
<Stack direction="row" spacing={1}>
{/* Game Modes */}
<Skeleton variant="rectangular" width={105} height={35}></Skeleton>
<Skeleton variant="rectangular" width={70} height={35}></Skeleton>
<Skeleton variant="rectangular" width={143} height={35}></Skeleton>
Expand Down
6 changes: 5 additions & 1 deletion src/components/LeaderboardSelectionBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,11 @@ export const LeaderboardSelectionBar = ({
}): JSX.Element => {
return (
<>
<Stack direction="row" justifyContent="space-between" spacing={1}>
<Stack
direction={{ xs: "column", sm: "row" }}
justifyContent="space-between"
spacing={1}
>
<Stack direction="row" spacing={1}>
<Button
variant={gameMode === GameMode.Standard ? "contained" : "outlined"}
Expand Down

0 comments on commit f5727ac

Please sign in to comment.