Fix dialog maxHeight on short viewports (#2881)
This commit is contained in:
parent
6db5dfa94a
commit
402069f464
2 changed files with 5 additions and 2 deletions
|
@ -52,7 +52,7 @@ export const TaxCountryDialog: React.FC<TaxCountryDialogProps> = ({
|
||||||
>(countries, country => country.country);
|
>(countries, country => country.country);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Dialog open={open} fullWidth onClose={onClose}>
|
<Dialog open={open} fullWidth onClose={onClose} className={classes.dialog}>
|
||||||
<DialogHeader onClose={onClose}>
|
<DialogHeader onClose={onClose}>
|
||||||
<FormattedMessage {...taxesMessages.chooseCountryDialogTitle} />
|
<FormattedMessage {...taxesMessages.chooseCountryDialogTitle} />
|
||||||
</DialogHeader>
|
</DialogHeader>
|
||||||
|
|
|
@ -13,10 +13,13 @@ export const useStyles = makeStyles(
|
||||||
display: "flex",
|
display: "flex",
|
||||||
flexDirection: "column",
|
flexDirection: "column",
|
||||||
overflowY: "scroll",
|
overflowY: "scroll",
|
||||||
maxHeight: 450,
|
maxHeight: "60vh",
|
||||||
marginLeft: -15,
|
marginLeft: -15,
|
||||||
paddingLeft: 15,
|
paddingLeft: 15,
|
||||||
},
|
},
|
||||||
|
dialog: {
|
||||||
|
maxHeight: "unset",
|
||||||
|
}
|
||||||
}),
|
}),
|
||||||
{ name: "TaxCountryDialog" },
|
{ name: "TaxCountryDialog" },
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue