feat(purchase-item): enhance attributes display for quantity-only items
This commit is contained in:
@@ -23,7 +23,10 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="d-grid cart-item-attributes">
|
||||
<div
|
||||
class="d-grid cart-item-attributes"
|
||||
[class.cart-item-attributes--quantity-only]="item.attributes.length === 0"
|
||||
>
|
||||
<div class="cart-item-attribute">
|
||||
<span class="cart-item-attribute-label">Cantidad: </span>
|
||||
<span class="fw-bold">{{ item.quantity }} unidad{{ item.quantity === 1 ? '' : 'es' }}</span>
|
||||
|
||||
@@ -92,6 +92,11 @@
|
||||
|
||||
.cart-item-attributes {
|
||||
gap: 0.125rem;
|
||||
|
||||
&--quantity-only {
|
||||
flex: 1;
|
||||
align-content: center;
|
||||
}
|
||||
}
|
||||
|
||||
.cart-item-attribute {
|
||||
|
||||
Reference in New Issue
Block a user