Skip to content

Commit 9dcae24

Browse files
authored
Merge pull request #102 from lumihq/kimi/hotfix/modal
Modal + mobile Safari full-height bug
2 parents 401ddde + c697cca commit 9dcae24

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
@@ -422,7 +422,7 @@ styles = jss
422422
, paddingRight: "16px"
423423
, "& button.lumi":
424424
{ fontSize: "16px"
425-
, lineHeight: "24px"
425+
, lineHeight: "initial"
426426
, padding: "10px 21px 10px"
427427
}
428428
}
@@ -433,7 +433,12 @@ styles = jss
433433
, "&:not([data-variant=\"dialog\"])":
434434
{ "& lumi-modal":
435435
{ "@media (max-width: 860px)":
436-
{ minHeight: "100vh"
436+
{ position: "fixed"
437+
, top: "0"
438+
, right: "0"
439+
, bottom: "0"
440+
, left: "0"
441+
, height: "100%"
437442
, width: "100vw"
438443
, maxWidth: "100vw"
439444
, "&[data-size=\"small\"], &[data-size=\"medium\"], &[data-size=\"large\"]":

0 commit comments

Comments
 (0)