Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(webapp): correct card dimensions for mobile #958

Merged
merged 2 commits into from
Oct 12, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions webapp/src/routes/RewardsDistribution/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -244,8 +244,8 @@ const RewardsDistribution = () => {
</Box>
</Popover>
{loading && <LinearProgress className={classes.linearLoader} />}
<div className={classes.flexdad}>
<div className={classes.mainReward}>
<div className={classes.topCard}>
<div className={classes.mainCard}>
<Card className={classes.cardShadow}>
<CardContent>
<Typography variant="h6">{t('dailyRewards')}</Typography>
Expand Down
22 changes: 18 additions & 4 deletions webapp/src/routes/RewardsDistribution/styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,26 +48,40 @@ export default (theme, lowestRewardsColor, highestRewardsColor) => ({
mapWrapper: {
marginTop: theme.spacing(3)
},
flexdad: {
topCard: {
flexDirection: 'row',
display: 'flex',
[theme.breakpoints.down('md')]: {
display: 'block',
paddingTop: '5px'
}
},
rewardsdiv: {
flexGrow: 1,
marginLeft: 10,
[theme.breakpoints.down('md')]: {
marginLeft: 0,
padding: '5px',
margin: '5px'
}
},
mainReward: {
mainCard: {
flexGrow: 1,
[theme.breakpoints.down('md')]: {
marginLeft: 0,
padding: '5px',
margin: '5px'
}
},
root: {
'& .MuiPaper-root': {
boxShadow: '0px 0px 14px rgba(53, 64, 82, 0.35) !important',
boxShadow: '0px 1px 3px 1px rgba(0, 0, 0, 0.15) !important',
},
},
boxPadding: {
padding: '10px',
},
cardShadow: {
boxShadow: '0px 0px 14px rgba(53, 64, 82, 0.35) !important',
boxShadow: '0px 1px 3px 1px rgba(0, 0, 0, 0.15) !important',
},
})