Fix dialog maxHeight on short viewports (#2881)

This commit is contained in:
Michał Droń 2022-12-21 13:17:33 +01:00 committed by GitHub
parent 6db5dfa94a
commit 402069f464
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 2 deletions

View file

@ -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>

View file

@ -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" },
);