Skip to content

Commit

Permalink
feat(webapp): correct style to RD
Browse files Browse the repository at this point in the history
  • Loading branch information
fvives99 committed Nov 21, 2022
1 parent 1a41ab0 commit d269054
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 5 deletions.
4 changes: 2 additions & 2 deletions webapp/src/components/InformationCard/ProducerInformation.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,17 +55,17 @@ const ProducerInformation = ({ info, classes, t }) => {
<RowUrl title={t('codeofconduct')} value={info?.code_of_conduct} />
<RowUrl title={t('chainResources')} value={info?.chain} />
{!!info?.otherResources?.length && (
<div>
<div className={classes.rowWrapper}>
<dt className={classes.dt}>
<Typography variant="body1" className={classes.textEllipsis}>
{t('otherResources')}
</Typography>
</dt>
<ListAltIcon
className={classes.test}
onClick={openPopover}
></ListAltIcon>
<Popover
className={classes.shadow}
open={Boolean(anchor)}
onClose={() => setAnchor(null)}
anchorEl={anchor}
Expand Down
10 changes: 8 additions & 2 deletions webapp/src/components/InformationCard/styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,13 @@ export default (theme) => ({
infoIcon: {
cursor: 'pointer',
},
test: {
backgroundColor: 'red !important'
dt:{
maxWidth: 90
},
shadow:{
'& .MuiPaper-root': {
boxShadow: '0px 1px 3px 1px rgba(0, 0, 0, 0.15)',
padding: theme.spacing(1),
},
}
})
2 changes: 1 addition & 1 deletion webapp/src/routes/RewardsDistribution/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ const RewardsDistribution = () => {
aria-haspopup="true"
>
<Popover
className={classes.root}
className={classes.shadow}
onMouseEnter={handlePopoverOpen}
onMouseLeave={handlePopoverClose}
sx={{
Expand Down
6 changes: 6 additions & 0 deletions webapp/src/routes/RewardsDistribution/styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,4 +76,10 @@ export default (theme, lowestRewardsColor, highestRewardsColor) => ({
display: 'flex',
},
},
shadow:{
'& .MuiPaper-root': {
boxShadow: '0px 1px 3px 1px rgba(0, 0, 0, 0.15)',
padding: theme.spacing(1),
},
}
})

0 comments on commit d269054

Please sign in to comment.