diff --git a/src/lib/components/IngredientsPage.svelte b/src/lib/components/IngredientsPage.svelte index f28acf1..a295119 100644 --- a/src/lib/components/IngredientsPage.svelte +++ b/src/lib/components/IngredientsPage.svelte @@ -1,5 +1,82 @@ {#if data.ingredients}
{#if data.portions}

Portionen:

- {data.portions} + {@html convertFloatingPointToFraction(multiplyFirstNumberInString(data.portions, multiplier))} {/if} + +

Menge anpassen:

+
+ + + + + +
+

Zutaten

{#each data.ingredients as list} {#if list.name} @@ -37,7 +149,7 @@ h4{ {/if}
{#each list.list as item} -
{item.amount} {item.unit}
{@html item.name}
+
{@html adjust_amount(item.amount, multiplier)} {item.unit}
{@html item.name}
{/each}
{/each}