Skip to content

Commit

Permalink
Fix landing height for very large screens
Browse files Browse the repository at this point in the history
  • Loading branch information
terezka committed Aug 5, 2021
1 parent e943fda commit a123ed9
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions pages/home.elm
Original file line number Diff line number Diff line change
Expand Up @@ -239,8 +239,11 @@ viewLarge model =
[ E.width E.fill
] <|
E.row
[ E.htmlAttribute (style "min-height" "calc(100vh - 135px)")
, E.htmlAttribute (style "max-height" "900px")
[ E.htmlAttribute <|
if model.window.height > 900 then
style "height" "calc(900px - 135px)"
else
style "min-height" "calc(100vh - 135px)"
, E.width pageColumn
, E.centerX
]
Expand Down

0 comments on commit a123ed9

Please sign in to comment.