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

View File

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