Squashed commit of the following:
commit 9b8fcecae7a2cb28a6e3061369c1a39e8e74791e
Author: TheThomaas <thethomaas@protonmail.ch>
Date: Mon Apr 21 14:28:24 2025 +0200
Add checkboxes to the ingredients list
This commit is contained in:
parent
20dac4790c
commit
00b49aa15b
|
|
@ -40,7 +40,7 @@
|
|||
<template x-if="currentServings">
|
||||
<ul class="c-recipe__ingredients-list">
|
||||
<template x-for="(ingredient, index) in ingredients" :key="index">
|
||||
<li x-text="adaptQuantity(ingredient, {{servings}}, currentServings)"></li>
|
||||
<li><label><input type="checkbox"><span x-text="adaptQuantity(ingredient, {{servings}}, currentServings)"></span></label></li>
|
||||
</template>
|
||||
</ul>
|
||||
</template>
|
||||
|
|
@ -48,7 +48,7 @@
|
|||
<template x-if="!currentServings">
|
||||
<ul class="c-recipe__ingredients-list">
|
||||
{% for ingredient in ingredients %}
|
||||
<li>{{ ingredient }}</li>
|
||||
<li><label><input type="checkbox"><span>{{ ingredient }}</span></label></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</template>
|
||||
|
|
|
|||
|
|
@ -14,11 +14,11 @@
|
|||
.c-recipe__ingredients-list {
|
||||
li {
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
|
||||
&::before {
|
||||
content: "-";
|
||||
margin-right: 6px;
|
||||
}
|
||||
input[type="checkbox"] {
|
||||
margin: 0;
|
||||
margin-inline-end: 6px;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue