From 296201eee5aec45e01c8f8d575e66c6de33ad056 Mon Sep 17 00:00:00 2001 From: Alexander Bocken Date: Tue, 13 Jan 2026 19:14:25 +0100 Subject: [PATCH] fix: improve UI elements in recipe editor - Center isBaseRecipe toggle by changing display to inline-flex - Fix note field editing by adding textarea with bindable value - Clear instruction step input after submission instead of restoring placeholder - Style note textarea with transparent background and lighter placeholder text The instruction field now properly clears on submission, while ingredient fields retain their previous values. --- src/lib/components/CreateStepList.svelte | 3 ++- src/lib/components/EditRecipeNote.svelte | 19 ++++++++++++++++++- src/lib/components/Toggle.svelte | 2 +- 3 files changed, 21 insertions(+), 3 deletions(-) diff --git a/src/lib/components/CreateStepList.svelte b/src/lib/components/CreateStepList.svelte index 1a88250..ca089fe 100644 --- a/src/lib/components/CreateStepList.svelte +++ b/src/lib/components/CreateStepList.svelte @@ -247,7 +247,8 @@ export function add_new_step(){ instructions[list_index].steps.push(new_step.step) } const el = document.querySelector("#step") - el.innerHTML = step_placeholder + el.innerHTML = "" + new_step.step = "" instructions = instructions //tells svelte to update dom } diff --git a/src/lib/components/EditRecipeNote.svelte b/src/lib/components/EditRecipeNote.svelte index a4e55d6..36102cc 100644 --- a/src/lib/components/EditRecipeNote.svelte +++ b/src/lib/components/EditRecipeNote.svelte @@ -1,4 +1,5 @@

Notiz:

- +
diff --git a/src/lib/components/Toggle.svelte b/src/lib/components/Toggle.svelte index 53522f6..3f0e834 100644 --- a/src/lib/components/Toggle.svelte +++ b/src/lib/components/Toggle.svelte @@ -4,7 +4,7 @@