fix: do not show scroll unless needed

This commit is contained in:
thecodrr
2020-11-23 11:59:53 +05:00
parent e4399d0058
commit bb292d65ef

View File

@@ -57,7 +57,7 @@ function Dialog(props) {
bg="background"
alignSelf={"center"}
m={[0, 2, 2]}
overflowY={props.scrollable ? "scroll" : "hidden"}
overflowY={props.scrollable ? "auto" : "hidden"}
sx={{
position: "relative",
overflow: "hidden",