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

Realigment on mobile volume 24h component #319

Open
wants to merge 9 commits into
base: dev
Choose a base branch
from
1 change: 1 addition & 0 deletions src/components/Stats/volumeBar/VolumeBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ const VolumeBar: React.FC<Iprops> = ({
</Typography>
)}
</Box>

<Box className={classes.tokenName}>
<Typography className={classes.tokenHeader}>Fees 24H:</Typography>
<Typography className={classes.tokenContent}>
Expand Down
56 changes: 49 additions & 7 deletions src/components/Stats/volumeBar/style.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,37 +8,78 @@ export const useStyles = makeStyles()(() => ({
width: '100%',
backgroundColor: colors.invariant.component,
borderRadius: 22,
padding: 20,
padding: '20px 24px',
display: 'flex',
whiteSpace: 'nowrap',
justifyContent: 'space-between'
flexDirection: 'row',
flexWrap: 'wrap',
gap: 8,
justifyContent: 'space-between',

[theme.breakpoints.down('sm')]: {
padding: '12px 24px',
gap: 8
}
},

tokenName: {
display: 'flex',
whiteSpace: 'nowrap',
alignItems: 'center',
minWidth: 'auto',
flex: '1 1 auto',
gap: 4,

[theme.breakpoints.down('sm')]: {
'& p': {
...typography.caption2
...typography.body2,
whiteSpace: 'nowrap'
}
},

[theme.breakpoints.down('xs')]: {
'& p': {
...typography.caption4
whiteSpace: 'nowrap'
},
flex: '0 0 auto',
width: '100%',
justifyContent: 'center'
},

'&:nth-of-type(3)': {
[theme.breakpoints.down('md')]: {
width: '100%',
justifyContent: 'center',
marginTop: '8px'
},
[theme.breakpoints.up('md')]: {
justifyContent: 'flex-end'
},
[theme.breakpoints.down('sm')]: {
marginTop: '0px'
}
},

'&:nth-of-type(2)': {
justifyContent: 'center',
textAlign: 'center'
},
'&:nth-of-type(1), &:nth-of-type(2)': {
[theme.breakpoints.down('md')]: {
justifyContent: 'center',
textAlign: 'center'
}
}
},

tokenHeader: {
...typography.heading4,
color: colors.invariant.textGrey
color: colors.invariant.textGrey,
whiteSpace: 'nowrap'
},

tokenContent: {
...typography.heading4,
color: colors.white.main,
whiteSpace: 'nowrap',
padding: '0 0 0 5px'
},

Expand All @@ -51,6 +92,7 @@ export const useStyles = makeStyles()(() => ({
color: colors.invariant.green,
fontWeight: 400
},

loadingOverlay: {
position: 'relative',
'&::after': {
Expand Down
Loading