Skip to content

Commit bcdc733

Browse files
Fix modal windows not having internal scroll on mobile (#152)
1 parent 7c17062 commit bcdc733

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/Lumi/Components/Modal.purs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -456,8 +456,9 @@ styles = jss
456456

457457
-- non-dialog modals fill the screen on mobile devices
458458
, "&:not([data-variant=\"dialog\"])":
459-
{ "& lumi-modal":
460-
{ "@media (max-width: 860px)":
459+
{ "@media (max-width: 860px)":
460+
{ maxHeight: "100%"
461+
, "& lumi-modal":
461462
{ position: "fixed"
462463
, top: "0"
463464
, right: "0"
@@ -470,6 +471,10 @@ styles = jss
470471
, "&[data-size=\"small\"], &[data-size=\"medium\"], &[data-size=\"large\"]":
471472
{ width: "100vw"
472473
}
474+
, "& lumi-modal-content":
475+
{ flex: "1 1 auto"
476+
, overflowY: "auto"
477+
}
473478
}
474479
}
475480
}

0 commit comments

Comments
 (0)