mirror of
https://github.com/NoRedInk/noredink-ui.git
synced 2024-12-02 23:52:22 +03:00
Allow user to scroll when the content doesn't fir the viewport.
This commit is contained in:
parent
ccb8831d61
commit
c69b6cab39
@ -189,7 +189,10 @@ viewBackdrop modal =
|
||||
(Css.backgroundColor (Nri.Ui.Colors.Extra.withAlpha 0.9 Colors.navy)
|
||||
:: [ Css.height (Css.vh 100)
|
||||
, Css.left Css.zero
|
||||
, Css.overflow Css.hidden
|
||||
, Css.overflowX Css.hidden
|
||||
, -- allow the user to scroll when the content doesn't fit the
|
||||
-- viewport, but don't display a scrollbar if we don't need it
|
||||
Css.overflowY Css.visible
|
||||
, Css.position Css.fixed
|
||||
, Css.top Css.zero
|
||||
, Css.width (Css.pct 100)
|
||||
|
Loading…
Reference in New Issue
Block a user