more room to grow

This commit is contained in:
Ben Dansby 2021-10-06 16:13:35 -07:00
parent a2286b73eb
commit 2d87ca114e

View File

@ -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