Skip to content

Commit

Permalink
Update from Shopify for theme larus-theme/main
Browse files Browse the repository at this point in the history
Committed from shop: My Store
  • Loading branch information
shopify[bot] authored Jan 8, 2025
1 parent c413186 commit 33c806b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion snippets/product-media.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@

{%- if media.media_type == 'image' -%}
<img
class="global-media-settings global-media-settings--no-shadow{% if variant_image %} product__media-item--variant{% endif %}"
class="global-media-settings global-media-settings--no-shadow{% if variant_image %} product__media-item--variant{% endif %}product-modal-image{% if hide_image %} hide-image{% endif %}
"
srcset="
{%- if media.preview_image.width >= 550 -%}{{ media.preview_image | image_url: width: 550 }} 550w,{%- endif -%}
{%- if media.preview_image.width >= 1100 -%}{{ media.preview_image | image_url: width: 1100 }} 1100w,{%- endif -%}
Expand All @@ -35,6 +36,7 @@
width="1100"
height="{{ 1100 | divided_by: media.preview_image.aspect_ratio | ceil }}"
data-media-id="{{ media.id }}"
data-variant-grouping="{{ variant_grouping_name }}"
>
{%- else -%}
{%- if media.media_type == 'model' -%}
Expand Down

0 comments on commit 33c806b

Please sign in to comment.