aboutsummaryrefslogtreecommitdiff
path: root/examples/01-hello-world
diff options
context:
space:
mode:
authorHayleigh Thompson <me@hayleigh.dev>2024-01-30 20:19:12 +0000
committerHayleigh Thompson <me@hayleigh.dev>2024-01-30 20:19:12 +0000
commitf60e4d653969036cb1950e55edd5099cc651cde5 (patch)
tree11d995656cb05891f485eb37c39292b64d9dba3e /examples/01-hello-world
parent97a393fa1c9a342183ceaede9cd07564816bacce (diff)
downloadlustre-f60e4d653969036cb1950e55edd5099cc651cde5.tar.gz
lustre-f60e4d653969036cb1950e55edd5099cc651cde5.zip
:art: Add padding for slim viewports.
Diffstat (limited to 'examples/01-hello-world')
-rw-r--r--examples/01-hello-world/src/app.gleam2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/01-hello-world/src/app.gleam b/examples/01-hello-world/src/app.gleam
index dc42ad7..5d2b50a 100644
--- a/examples/01-hello-world/src/app.gleam
+++ b/examples/01-hello-world/src/app.gleam
@@ -13,7 +13,7 @@ import lustre/element/html
import lustre/ui
pub fn main() {
- let styles = [#("width", "100vw"), #("height", "100vh")]
+ let styles = [#("width", "100vw"), #("height", "100vh"), #("padding", "1rem")]
let app =
lustre.element(ui.centre(
[attribute.style(styles)],