Skip to content

Commit

Permalink
responsive modal
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiolalombardim committed Jun 23, 2023
1 parent c845d65 commit a069932
Show file tree
Hide file tree
Showing 5 changed files with 178 additions and 138 deletions.
2 changes: 1 addition & 1 deletion src/modules/common/CopyAddress.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export const CopyAddress: React.FC<Props> = ({ address, typographyProps }) => {
<>
<Grid container alignItems="center">
<Grid item>
<Typography variant="subtitle1" color="textPrimary" {...typographyProps}>
<Typography variant="subtitle2" color="textPrimary" {...typographyProps}>
{isMobileSmall ? toShortAddress(address) : address}
</Typography>
</Grid>
Expand Down
13 changes: 9 additions & 4 deletions src/modules/explorer/components/ResponsiveDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,15 @@ const Content = styled(Grid)({
padding: "41px 46px"
})

const TitleText = styled(Typography)({
const TitleText = styled(Typography)(({ theme }) => ({
color: "#ffff",
fontWeight: 550,
lineHeight: ".80",
textTransform: "capitalize"
})
textTransform: "capitalize",
[theme.breakpoints.down("sm")]: {
fontSize: 18
}
}))

const CustomDialog = styled(Dialog)({
"& .MuiDialog-paperWidthMd": {
Expand Down Expand Up @@ -57,7 +60,9 @@ export const ResponsiveDialog: React.FC<{
<CloseButton onClose={onClose} />
</Grid>
</Grid>
<Grid item>{children}</Grid>
<Grid item style={{ width: "inherit" }}>
{children}
</Grid>
</Content>
</BottomSheet>
) : (
Expand Down
Loading

0 comments on commit a069932

Please sign in to comment.