From 98ed6018a4fd16f6e3bfb95a94a2ee82af861f6c Mon Sep 17 00:00:00 2001 From: Hayleigh Thompson Date: Tue, 30 Jan 2024 20:19:24 +0000 Subject: :art: Add padding for slim viewports. --- examples/02-interactivity/src/app.gleam | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples/02-interactivity/src/app.gleam') 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)], -- cgit v1.2.3