Skip to content

Commit afa76e2

Browse files
committed
Simplify lobby layout
1 parent a359188 commit afa76e2

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

src/pages/LobbyPage.js

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,9 @@ import useStorage from "../hooks/useStorage";
3030

3131
const useStyles = makeStyles((theme) => ({
3232
mainGrid: {
33-
"--table-height": "400px", // responsive variable
34-
[theme.breakpoints.up("sm")]: {
35-
"--table-height": "480px",
36-
},
33+
"--table-height": "calc(max(50vh - 120px, 400px))",
3734
[theme.breakpoints.up("md")]: {
38-
"--table-height": "calc(min(100vh - 200px, 720px))",
35+
"--table-height": "calc(max(min(100vh - 200px, 800px), 300px))",
3936
},
4037
},
4138
gamesTable: {
@@ -204,7 +201,7 @@ function LobbyPage() {
204201
<Container>
205202
<Grid container spacing={2} className={classes.mainGrid}>
206203
<Box clone order={{ xs: 2, md: 1 }} className={classes.chatColumn}>
207-
<Grid item xs={12} sm={12} md={6}>
204+
<Grid item xs={12} md={6}>
208205
<Paper className={classes.chatColumnPaper}>
209206
<Chat title="Lobby Chat" messageLimit={100} showMessageTimes />
210207
</Paper>
@@ -229,7 +226,7 @@ function LobbyPage() {
229226
</Grid>
230227
</Box>
231228
<Box clone order={{ xs: 1, md: 2 }} className={classes.gamesColumn}>
232-
<Grid item xs={12} sm={12} md={6}>
229+
<Grid item xs={12} md={6}>
233230
<Tabs
234231
className={classes.lobbyTabs}
235232
indicatorColor="secondary"

0 commit comments

Comments
 (0)