mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-06 02:51:34 +00:00
Fix height of invisible "in cart" text
While the text "x in cart" isn't visible, the item quantity is not set. A missing variable leads to longer text that is taken up more space. In this case it was two lines instead of one line. The resulting extra line of margin disappeared when adding to the cart and the rest of the page jumped up.
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
{{ "js.shop_variant_no_group_buy.increment" | t }}
|
||||
%br
|
||||
.variant-quantity-display{ng: {class: "{visible: variant.line_item.quantity}"}}
|
||||
{{ "js.shop_variant_no_group_buy.in_cart" | t:{quantity: variant.line_item.quantity} }}
|
||||
{{ "js.shop_variant_no_group_buy.in_cart" | t:{quantity: variant.line_item.quantity || 0} }}
|
||||
%input{type: :hidden,
|
||||
name: "variants[{{::variant.id}}]",
|
||||
ng: {model: "variant.line_item.quantity"}}
|
||||
|
||||
Reference in New Issue
Block a user