Changed style on modal to allow for scroll if needed

This commit is contained in:
Mitchell McCaffrey 2020-04-09 22:48:21 +10:00
parent 4c42bec05f
commit 5af96a211b
2 changed files with 5 additions and 1 deletions

View File

@ -90,6 +90,9 @@ function AddMapButton({ onMapChanged }) {
handleDone();
}}
>
<Label pt={2} pb={1}>
Add map
</Label>
<input
onChange={handleImageUpload}
type="file"
@ -104,7 +107,7 @@ function AddMapButton({ onMapChanged }) {
sx={{
width: "500px",
minHeight: "200px",
maxHeight: "500px",
maxHeight: "300px",
objectFit: "contain",
borderRadius: "4px",
}}

View File

@ -19,6 +19,7 @@ function StyledModal({ isOpen, onRequestClose, children }) {
bottom: "auto",
marginRight: "-50%",
transform: "translate(-50%, -50%)",
maxHeight: "100%",
},
}}
>