From d50841c5a68d39bbcad902c2365d1ac2ac33c0d4 Mon Sep 17 00:00:00 2001 From: hsiegeln <37154749+hsiegeln@users.noreply.github.com> Date: Sun, 19 Apr 2026 13:45:56 +0200 Subject: [PATCH] refactor(editor): StepList als eigenstaendige Component Zubereitungs-Liste mit Add + Remove als Sub-Component. Parent steuert nur noch den Wrapper und reicht steps + die zwei Callbacks rein. Co-Authored-By: Claude Opus 4.7 (1M context) --- src/lib/components/RecipeEditor.svelte | 68 +---------------- src/lib/components/StepList.svelte | 101 +++++++++++++++++++++++++ 2 files changed, 105 insertions(+), 64 deletions(-) create mode 100644 src/lib/components/StepList.svelte diff --git a/src/lib/components/RecipeEditor.svelte b/src/lib/components/RecipeEditor.svelte index 6a2f817..e0d1843 100644 --- a/src/lib/components/RecipeEditor.svelte +++ b/src/lib/components/RecipeEditor.svelte @@ -1,9 +1,10 @@ + +
    + {#each steps as step, idx (idx)} +
  1. + {idx + 1} + + +
  2. + {/each} +
+ + +