mirror of
https://github.com/rowyio/rowy.git
synced 2025-12-29 00:16:39 +01:00
fix modal titles hiding close button
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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."
|
||||
|
||||
Reference in New Issue
Block a user