Unverified Commit 66fe18a6 authored by Benjamin Morali's avatar Benjamin Morali Committed by GitHub
Browse files

feat(stats): add mobile responsiveness on stats page (#177)

parent c51b31ca
......@@ -22,6 +22,12 @@ const useTitleStyle = makeStyles({
},
});
const useItemStyle = makeStyles({
root: {
width: "100%",
},
});
const StatisticsGroup: FC<StatisticsGroupProps> = ({ group }) => (
<Box display="flex" width="1" flexDirection="column">
<Box paddingBottom={2}>
......@@ -32,7 +38,7 @@ const StatisticsGroup: FC<StatisticsGroupProps> = ({ group }) => (
<Box>
<Grid container spacing={3}>
{group.blocks.map((block, index) => (
<Grid item key={index} xs={block.size}>
<Grid item key={index} sm={block.size} classes={useItemStyle()}>
<StatisticsBlock block={block} />
</Grid>
))}
......
This diff is collapsed.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment