Skip to content

Commit ff9f4d4

Browse files
committed
Allow the user to use smaller steps of the quantity
1 parent c0243f1 commit ff9f4d4

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/lib/components/admin/recipies/AlternativeIngredientsEditor.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@
101101
updateAlternative(index, 'quantity', parseFloat(target.value) || 0);
102102
}
103103
}}
104-
step="0.01"
104+
step="0.001"
105105
class="w-full px-2 py-1 border border-gray-300 rounded text-sm"
106106
/>
107107
</div>

src/lib/components/admin/recipies/RecipeForm.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@
349349
<input
350350
type="number"
351351
bind:value={ingredient.quantity}
352-
step="0.01"
352+
step="0.001"
353353
placeholder="Aantal"
354354
class="w-24 px-2 py-1 border border-gray-300 rounded text-sm"
355355
/>

0 commit comments

Comments
 (0)