1
1
mirror of https://github.com/srid/ema.git synced 2024-11-25 20:12:20 +03:00

Add overflow-y-scroll to body

This commit is contained in:
Sridhar Ratnakumar 2021-04-27 12:36:02 -04:00
parent 5e087cfda1
commit 7ce9eead08
2 changed files with 4 additions and 1 deletions

View File

@ -2,6 +2,7 @@
## Unreleased
- Helpers.Tailwind: add overflow-y-scroll to body
- Remove Ex03_Documentation.hs (moved to separate repo, `ema-docs`)
- Add `Ord` instance to `Slug`

View File

@ -44,7 +44,9 @@ layoutWith lang encoding twindShim appHead appBody = RU.renderHtml $ do
H.meta ! A.name "viewport" ! A.content "width=device-width, initial-scale=1"
appHead
twindShim
H.body $ do
-- The "overflow-y-scroll" makes the scrollbar visible always, so as to
-- avoid janky shifts when switching to routes with suddenly scrollable content.
H.body ! A.class_ "overflow-y-scroll" $ do
appBody
-- | Loads full tailwind CSS from CDN (not good for production)