diff options
author | Hayleigh Thompson <me@hayleigh.dev> | 2024-01-30 20:19:24 +0000 |
---|---|---|
committer | Hayleigh Thompson <me@hayleigh.dev> | 2024-01-30 20:19:24 +0000 |
commit | 98ed6018a4fd16f6e3bfb95a94a2ee82af861f6c (patch) | |
tree | 7d9efc7b2a1cd4dd1ed954b294362d003b198dbf /examples/02-interactivity/src/app.gleam | |
parent | f60e4d653969036cb1950e55edd5099cc651cde5 (diff) | |
download | lustre-98ed6018a4fd16f6e3bfb95a94a2ee82af861f6c.tar.gz lustre-98ed6018a4fd16f6e3bfb95a94a2ee82af861f6c.zip |
:art: Add padding for slim viewports.
Diffstat (limited to 'examples/02-interactivity/src/app.gleam')
-rw-r--r-- | examples/02-interactivity/src/app.gleam | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/02-interactivity/src/app.gleam b/examples/02-interactivity/src/app.gleam index e47b7a4..d4b5eb6 100644 --- a/examples/02-interactivity/src/app.gleam +++ b/examples/02-interactivity/src/app.gleam @@ -50,8 +50,8 @@ fn update(model: Model, msg: Msg) -> Model { // VIEW ------------------------------------------------------------------------ fn view(model: Model) -> Element(Msg) { + let styles = [#("width", "100vw"), #("height", "100vh"), #("padding", "1rem")] let count = int.to_string(model) - let styles = [#("width", "100vw"), #("height", "100vh")] ui.centre( [attribute.style(styles)], |