From 37a64cd488dee4a0a14f0853f0c33d5162d65e0f Mon Sep 17 00:00:00 2001 From: Dallas Hoffman Date: Sat, 23 Sep 2023 01:43:20 -0400 Subject: [PATCH] Add settings modal --- src/lib/components/modal.svelte | 1 + src/lib/components/notes/note-card.svelte | 6 +++++- src/lib/components/notes/note-list.svelte | 10 ++++++--- .../settings/settings-button.svelte | 9 ++++++++ .../components/settings/settings-modal.svelte | 21 +++++++++++++++++++ src/lib/stores/index.ts | 3 +++ src/lib/stores/notes.ts | 3 ++- src/lib/stores/settings.ts | 14 +++++++++++++ src/routes/+page.svelte | 8 +++++-- 9 files changed, 68 insertions(+), 7 deletions(-) create mode 100644 src/lib/components/settings/settings-button.svelte create mode 100644 src/lib/components/settings/settings-modal.svelte create mode 100644 src/lib/stores/settings.ts diff --git a/src/lib/components/modal.svelte b/src/lib/components/modal.svelte index 211879b..92aa912 100644 --- a/src/lib/components/modal.svelte +++ b/src/lib/components/modal.svelte @@ -40,6 +40,7 @@ .app-modal { article { max-width: var(--max-width, none); + flex: 1 0 auto; } header { diff --git a/src/lib/components/notes/note-card.svelte b/src/lib/components/notes/note-card.svelte index 8eab9d2..b5c6775 100644 --- a/src/lib/components/notes/note-card.svelte +++ b/src/lib/components/notes/note-card.svelte @@ -43,7 +43,7 @@ -
+