From 4b569c5fb67ccdd7a5a864b3a8a6e128bc79e9ac Mon Sep 17 00:00:00 2001 From: Alexander Bocken Date: Thu, 4 Sep 2025 17:34:43 +0200 Subject: [PATCH] Implement progressive enhancement for recipe multiplier with form fallbacks Add form-based multiplier controls that work without JavaScript while providing enhanced UX when JS is available. Fixed fraction display and NaN flash issues. --- src/lib/components/IngredientsPage.svelte | 189 +++++++++++++++++----- src/routes/rezepte/[name]/+page.ts | 8 +- 2 files changed, 154 insertions(+), 43 deletions(-) diff --git a/src/lib/components/IngredientsPage.svelte b/src/lib/components/IngredientsPage.svelte index b83b3b0d..a0652ab8 100644 --- a/src/lib/components/IngredientsPage.svelte +++ b/src/lib/components/IngredientsPage.svelte @@ -1,21 +1,70 @@