From 526c7433f4bb96473f42f6055e1ba85e69aac97d Mon Sep 17 00:00:00 2001 From: hsiegeln <37154749+hsiegeln@users.noreply.github.com> Date: Sun, 19 Apr 2026 15:03:29 +0200 Subject: [PATCH] feat(editor): Sektionsueberschriften in IngredientRow + Insert-Button DraftIng bekommt section_heading: string | null. IngredientRow rendert davor einen Fade-in-Insert-Button (null) oder ein Heading- Input mit Entfernen-Button (string). Props onaddSection/onremoveSection ergaenzt; Styles an bestehendem Block angehaengt. Co-Authored-By: Claude Sonnet 4.6 --- src/lib/components/IngredientRow.svelte | 94 ++++++++++++++++++++++- src/lib/components/recipe-editor-types.ts | 1 + 2 files changed, 93 insertions(+), 2 deletions(-) diff --git a/src/lib/components/IngredientRow.svelte b/src/lib/components/IngredientRow.svelte index cb775fe..03a806f 100644 --- a/src/lib/components/IngredientRow.svelte +++ b/src/lib/components/IngredientRow.svelte @@ -1,5 +1,5 @@ +{#if ing.section_heading === null} +
  • + +
  • +{:else} +
  • + + +
  • +{/if}