Skip to content

Commit

Permalink
product-main
Browse files Browse the repository at this point in the history
  • Loading branch information
Benedikt-beeclever committed Sep 29, 2024
1 parent e8c801b commit 935faf1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion blocks/product-variants.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
{%- if swatch.color -%}
{{ swatch.color }}
{%- else -%}
{%- render 'image-element', image: swatch.image, aspect_ratio: 1, fit: 'cover', sizes: '50px', widhts: '50,100,150' -%}
{%- render 'image-element', image: swatch.image, aspect_ratio: 1, fit: 'cover', sizes: '50px', widths: '50,100,150' -%}
{%- endif -%}
</div>
{% else %}
Expand Down
2 changes: 1 addition & 1 deletion snippets/image-element.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
assign aspect_ratio = image.aspect_ratio | default: 1.0 | round: 7
endif
%}
<div class="image-wrapper {{ fit }}" style="--aspect-ratio: {{ aspect_ratio }};" data-nan="{{ '%' | times: 1.0 }}">
<div class="image-wrapper {{ fit }}" style="--aspect-ratio: {{ aspect_ratio }};">
{% liquid
assign placeholder = placeholder | default: "image"
if image != blank
Expand Down

0 comments on commit 935faf1

Please sign in to comment.