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);
|
||||
|
||||
return (
|
||||
<Dialog open={open} fullWidth onClose={onClose}>
|
||||
<Dialog open={open} fullWidth onClose={onClose} className={classes.dialog}>
|
||||
<DialogHeader onClose={onClose}>
|
||||
<FormattedMessage {...taxesMessages.chooseCountryDialogTitle} />
|
||||
</DialogHeader>
|
||||
|
|
|
@ -13,10 +13,13 @@ export const useStyles = makeStyles(
|
|||
display: "flex",
|
||||
flexDirection: "column",
|
||||
overflowY: "scroll",
|
||||
maxHeight: 450,
|
||||
maxHeight: "60vh",
|
||||
marginLeft: -15,
|
||||
paddingLeft: 15,
|
||||
},
|
||||
dialog: {
|
||||
maxHeight: "unset",
|
||||
}
|
||||
}),
|
||||
{ name: "TaxCountryDialog" },
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue