mirror of
https://github.com/NoRedInk/noredink-ui.git
synced 2024-12-25 22:53:34 +03:00
more room to grow
This commit is contained in:
parent
a2286b73eb
commit
2d87ca114e
@ -437,9 +437,6 @@ modalStyles =
|
|||||||
-- Size
|
-- Size
|
||||||
, width (px 600)
|
, width (px 600)
|
||||||
, backgroundColor Colors.white
|
, backgroundColor Colors.white
|
||||||
|
|
||||||
-- the modal should grow up to the viewport minus a 20px margin
|
|
||||||
, maxHeight (calc (pct 100) minus (px 40))
|
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
@ -615,14 +612,14 @@ viewInnerContent ({ visibleTitle } as config) =
|
|||||||
|
|
||||||
titleHeight =
|
titleHeight =
|
||||||
if visibleTitle then
|
if visibleTitle then
|
||||||
45
|
85
|
||||||
|
|
||||||
else
|
else
|
||||||
0
|
0
|
||||||
|
|
||||||
footerHeight =
|
footerHeight =
|
||||||
if visibleFooter then
|
if visibleFooter then
|
||||||
180
|
160
|
||||||
|
|
||||||
else
|
else
|
||||||
0
|
0
|
||||||
@ -659,7 +656,7 @@ viewInnerContent ({ visibleTitle } as config) =
|
|||||||
, Css.maxHeight
|
, Css.maxHeight
|
||||||
(Css.calc (Css.vh 100)
|
(Css.calc (Css.vh 100)
|
||||||
Css.minus
|
Css.minus
|
||||||
(Css.px (footerHeight + titleHeight + 145))
|
(Css.px (footerHeight + titleHeight + 40))
|
||||||
)
|
)
|
||||||
, Css.width (Css.pct 100)
|
, Css.width (Css.pct 100)
|
||||||
, Css.boxSizing Css.borderBox
|
, Css.boxSizing Css.borderBox
|
||||||
|
Loading…
Reference in New Issue
Block a user