Skip to content

Commit 676be88

Browse files
committed
Fix main chaty mobile layout
1 parent 7a91993 commit 676be88

File tree

1 file changed

+20
-7
lines changed

1 file changed

+20
-7
lines changed

src/pages/dashboard/Dashboard.js

Lines changed: 20 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -319,15 +319,15 @@ const Dashboard = ({ classes, theme, ...props }) => {
319319
<div className={classes.mainChartHeaderLabels}>
320320
<div className={classes.mainChartHeaderLabel}>
321321
<Dot color="warning" />
322-
<Typography>&nbsp;Tablet</Typography>
322+
<Typography className={classes.mainChartLegentElement}>Tablet</Typography>
323323
</div>
324324
<div className={classes.mainChartHeaderLabel}>
325325
<Dot color="primary" />
326-
<Typography>&nbsp;Mobile</Typography>
326+
<Typography className={classes.mainChartLegentElement}>Mobile</Typography>
327327
</div>
328328
<div className={classes.mainChartHeaderLabel}>
329329
<Dot color="primary" />
330-
<Typography>&nbsp;Desktop</Typography>
330+
<Typography className={classes.mainChartLegentElement}>Desktop</Typography>
331331
</div>
332332
</div>
333333
<Select
@@ -471,7 +471,6 @@ const styles = theme => ({
471471
legendElement: {
472472
display: "flex",
473473
alignItems: "center",
474-
marginRight: theme.spacing.unit * 2
475474
},
476475
legendElementText: {
477476
marginLeft: theme.spacing.unit
@@ -492,23 +491,37 @@ const styles = theme => ({
492491
width: "100%",
493492
display: "flex",
494493
alignItems: "center",
495-
justifyContent: "space-between"
494+
justifyContent: "space-between",
495+
[theme.breakpoints.only("xs")]: {
496+
flexWrap: 'wrap',
497+
}
496498
},
497499
mainChartHeaderLabels: {
498500
display: "flex",
499-
alignItems: "center"
501+
alignItems: "center",
502+
[theme.breakpoints.only("xs")]: {
503+
order: 3,
504+
width: '100%',
505+
justifyContent: 'center',
506+
marginTop: theme.spacing.unit,
507+
marginBottom: theme.spacing.unit,
508+
}
500509
},
501510
mainChartHeaderLabel: {
502511
display: "flex",
503512
alignItems: "center",
504-
marginLeft: theme.spacing.unit * 2
513+
marginLeft: theme.spacing.unit * 3,
505514
},
506515
mainChartSelectRoot: {
507516
borderColor: theme.palette.text.hint + '80 !important',
508517
},
509518
mainChartSelect: {
510519
padding: 10,
511520
paddingRight: 25
521+
},
522+
mainChartLegentElement: {
523+
fontSize: '18px !important',
524+
marginLeft: theme.spacing.unit,
512525
}
513526
});
514527

0 commit comments

Comments
 (0)