pull/1/head
Jan Umbach 2024-05-29 17:16:04 +02:00
parent 1495b7facc
commit 878fc2b9df
1 changed files with 2 additions and 2 deletions

View File

@ -77,7 +77,7 @@
{% endif %}
thumbnail-alt-mobile={{ media.alt }}>
{%- liquid
assign media_position = media_position | default: 1 | plus: 1
assign media_position = media_position | default: 2 | plus: 1
assign lazy_load = false
if media_position > 1
assign lazy_load = true
@ -107,7 +107,7 @@
class="product__media-item grid__item slider__slide is-active{% if single_media_visible %} product__media-item--single{% endif %}{% if featured_media.media_type != 'image' %} product__media-item--full{% endif %}{% if section.settings.hide_variants and variant_images contains featured_media.src %} product__media-item--variant{% endif %}{% if settings.animations_reveal_on_scroll %} scroll-trigger animate--fade-in{% endif %}"
data-media-id="{{ section.id }}-{{ featured_media.id }}"
thumbnail-alt-mobile={{ featured_media.alt }}>
{%- assign media_position = media_position | default: 0 | plus: 1 -%}
{%- assign media_position = 1 -%}
{% render 'product-thumbnail'
, media: featured_media
, media_count: media_count