fix modal titles hiding close button

This commit is contained in:
Sidney Alcantara
2022-06-15 20:24:05 +10:00
parent c2626e9bcb
commit 5696cc38e7
2 changed files with 4 additions and 2 deletions

View File

@@ -60,7 +60,8 @@ export default function Modal({
}: IModalProps) {
const theme = useTheme();
const isMobile = useMediaQuery(theme.breakpoints.down("sm"));
const fullScreen = props.fullScreen || isMobile;
const fullScreen =
props.fullScreen === false ? false : props.fullScreen || isMobile;
const [open, setOpen] = useState(true);
const [emphasizeCloseButton, setEmphasizeCloseButton] = useState(false);
@@ -108,7 +109,7 @@ export default function Modal({
>
<DialogTitle
id="modal-title"
style={{ flexGrow: 1, userSelect: "none" }}
style={{ flex: 1, overflow: "auto", userSelect: "none" }}
>
{title}
</DialogTitle>

View File

@@ -81,6 +81,7 @@ export default function ReExecute() {
onClose={handleClose}
maxWidth="xs"
fullWidth
fullScreen={false}
hideCloseButton
title="Force refresh?"
children="All Extensions and Derivatives in this table will re-execute."