From 396b865b051b9cb68d27c793c0c082069fe001b4 Mon Sep 17 00:00:00 2001 From: Giulio Alessandrini Date: Tue, 3 Aug 2021 09:43:26 +0200 Subject: [PATCH] todo restyling --- src/lib/apps/todoApp.svelte | 116 ++++++++++++++++++++++++++---------- src/routes/__layout.svelte | 6 -- 2 files changed, 83 insertions(+), 39 deletions(-) diff --git a/src/lib/apps/todoApp.svelte b/src/lib/apps/todoApp.svelte index d364f70..8dda0c4 100644 --- a/src/lib/apps/todoApp.svelte +++ b/src/lib/apps/todoApp.svelte @@ -10,6 +10,7 @@ date: Date.now, done: false } + todo_text = ""; if (todo_type == "done") todo_type = "all"; $todos = [todo, ...$todos]; } @@ -46,8 +47,10 @@

TODO


- - +
+ + +
@@ -65,49 +68,86 @@ \ No newline at end of file diff --git a/src/routes/__layout.svelte b/src/routes/__layout.svelte index 99de269..67514f0 100644 --- a/src/routes/__layout.svelte +++ b/src/routes/__layout.svelte @@ -21,13 +21,7 @@ } .site { - padding: 2em; - margin-left: auto; - margin-right: auto; - max-width: 50em; - display: flex; flex-direction: column; - align-items: center; } \ No newline at end of file