Skip to content

Commit

Permalink
Make home page cards take up full width on mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
kennethnym committed Jul 7, 2023
1 parent 8c1cc3d commit 29c4286
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/homePage/homePage.component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ const paperStyles = {
borderRadius: '4px',
marginBottom: 2,
height: '100%',
width: '100%',
};

const avatarStyles = {
Expand Down Expand Up @@ -270,7 +271,7 @@ const HomePage = (): React.ReactElement => {
</Grid>
</Paper>
<Grid container spacing={2}>
<Grid item sm={12} md={4}>
<Grid item xs={12} md={4}>
<Paper sx={paperStyles} elevation={1}>
<Box sx={paperContentStyles}>
<Avatar sx={avatarStyles}>
Expand All @@ -296,7 +297,7 @@ const HomePage = (): React.ReactElement => {
</Box>
</Paper>
</Grid>
<Grid item sm={12} md={4}>
<Grid item xs={12} md={4}>
<Paper sx={paperStyles} elevation={1}>
<Box sx={paperContentStyles}>
<Avatar sx={avatarStyles}>
Expand All @@ -322,7 +323,7 @@ const HomePage = (): React.ReactElement => {
</Box>
</Paper>
</Grid>
<Grid item sm={12} md={4}>
<Grid item xs={12} md={4}>
<Paper
sx={{ ...paperStyles, backgroundColor: '#003088' }}
elevation={1}
Expand Down

0 comments on commit 29c4286

Please sign in to comment.