Improve product card display on counter click

This commit is contained in:
Antoine Bartuccio 2024-12-27 01:59:54 +01:00
parent 43768f1691
commit 43f47e2087

View File

@ -203,7 +203,6 @@
<div class="row gap-2x"> <div class="row gap-2x">
{% for product in categories[category] -%} {% for product in categories[category] -%}
<button class="card shadow" @click="addToBasketWithMessage('{{ product.id }}', 1)"> <button class="card shadow" @click="addToBasketWithMessage('{{ product.id }}', 1)">
<strong class="card-title">{{ product.name }}</strong>
<img <img
class="card-image" class="card-image"
alt="image de {{ product.name }}" alt="image de {{ product.name }}"
@ -213,7 +212,10 @@
src="{{ static('core/img/na.gif') }}" src="{{ static('core/img/na.gif') }}"
{% endif %} {% endif %}
/> />
<span class="card-content">{{ product.price }} €<br>{{ product.code }}</span> <span class="card-content">
<strong class="card-title">{{ product.name }}</strong>
<p>{{ product.price }} €<br>{{ product.code }}</p>
</span>
</button> </button>
{%- endfor %} {%- endfor %}
</div> </div>