Skip to content

Commit

Permalink
CWVのCLS対応のために商品詳細画像のwidth、height追加
Browse files Browse the repository at this point in the history
あと標準でaltくらい出しとこうよ
  • Loading branch information
tao-s authored Apr 21, 2021
1 parent 60f8669 commit fe6750d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Eccube/Resource/template/default/Product/detail.twig
Original file line number Diff line number Diff line change
Expand Up @@ -224,14 +224,14 @@ file that was distributed with this source code.

<div class="item_visual">
{% for ProductImage in Product.ProductImage %}
<div class="slide-item"><img src="{{ asset(ProductImage, 'save_image') }}"></div>
<div class="slide-item"><img src="{{ asset(ProductImage, 'save_image') }}" alt="{{Product.name}}" width="550" height="550"{% if loop.index > 1 %} loading="lazy"{% endif %}></div>
{% else %}
<div class="slide-item"><img src="{{ asset(''|no_image_product, 'save_image') }}"/></div>
<div class="slide-item"><img src="{{ asset(''|no_image_product, 'save_image') }}" alt="{{Product.name}}" width="550" height="550"></div>
{% endfor %}
</div>
<div class="item_nav">
{% for ProductImage in Product.ProductImage %}
<div class="slideThumb" data-index="{{ loop.index0 }}"><img src="{{ asset(ProductImage, 'save_image') }}"></div>
<div class="slideThumb" data-index="{{ loop.index0 }}"><img src="{{ asset(ProductImage, 'save_image') }}" alt="{{Product.name}}" width="133" height="133" loading="lazy"></div>
{% endfor %}
</div>
</div>
Expand Down

0 comments on commit fe6750d

Please sign in to comment.