fix: improve UI elements in recipe editor
All checks were successful
CI / update (push) Successful in 1m14s

- 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.
This commit is contained in:
2026-01-13 19:14:25 +01:00
parent b43b45dac2
commit 296201eee5
3 changed files with 21 additions and 3 deletions

View File

@@ -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
}