aboutsummaryrefslogtreecommitdiff
path: root/examples/02-interactivity/src
diff options
context:
space:
mode:
authorHayleigh Thompson <me@hayleigh.dev>2024-01-30 20:19:24 +0000
committerHayleigh Thompson <me@hayleigh.dev>2024-01-30 20:19:24 +0000
commit98ed6018a4fd16f6e3bfb95a94a2ee82af861f6c (patch)
tree7d9efc7b2a1cd4dd1ed954b294362d003b198dbf /examples/02-interactivity/src
parentf60e4d653969036cb1950e55edd5099cc651cde5 (diff)
downloadlustre-98ed6018a4fd16f6e3bfb95a94a2ee82af861f6c.tar.gz
lustre-98ed6018a4fd16f6e3bfb95a94a2ee82af861f6c.zip
:art: Add padding for slim viewports.
Diffstat (limited to 'examples/02-interactivity/src')
-rw-r--r--examples/02-interactivity/src/app.gleam2
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)],