Skip to content

Commit

Permalink
feat(admin-ui): update tablet view dashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
harryandriyan committed Jul 18, 2022
1 parent 779ba82 commit 6d26cc8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
6 changes: 3 additions & 3 deletions admin-ui/app/routes/Dashboards/DashboardPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ function DashboardPage({
>
<Paper
className={classes.userInfo}
style={isMobile ? { marginLeft: 0 } : {}}
style={isTabletOrMobile ? { marginLeft: 0 } : {}}
elevation={3}
>
<div className={classes.userInfoTitle}>User Info</div>
Expand Down Expand Up @@ -380,7 +380,7 @@ function DashboardPage({
<Grid
xs={12}
item
style={{ marginLeft: 40, marginBottom: 40 }}
style={isTabletOrMobile ? { marginLeft: 40 } : { marginLeft: 40, marginBottom: 40 }}
>
<div>Select a date range</div>
<DateRange />
Expand All @@ -391,7 +391,7 @@ function DashboardPage({
style={isMobile ? mobileChartStyle : {}}
item
>
<div className={classes.chartContainer}>
<div className={isTabletOrMobile ? classes.chartContainerTable : classes.chartContainer}>
<DashboardChart />
</div>
</Grid>
Expand Down
5 changes: 5 additions & 0 deletions admin-ui/app/routes/Dashboards/styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,11 @@ const styles = makeStyles(() => ({
maxWidth: '40vw',
height: 'max-content',
},
chartContainerTable: {
width: 780,
maxWidth: '63vw',
height: 'max-content',
},
supportContainer: {
display: 'flex',
marginLeft: 20,
Expand Down

0 comments on commit 6d26cc8

Please sign in to comment.