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:
parent
5e087cfda1
commit
7ce9eead08
@ -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`
|
||||
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user