Skip to content

Commit

Permalink
refactor: added missing width and height to image
Browse files Browse the repository at this point in the history
  • Loading branch information
buggyzap authored Jan 29, 2024
1 parent 51ece31 commit 7c051de
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions templates/catalog/_partials/miniatures/pack-product.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@
{if !empty($product.default_image.medium.sources.webp)}<source srcset="{$product.default_image.medium.sources.webp}" type="image/webp">{/if}
<img
src="{$product.default_image.medium.url}"
width="{$product.default_image.bySize.medium_default.width}"
height="{$product.default_image.bySize.medium_default.height}"
{if !empty($product.default_image.legend)}
alt="{$product.default_image.legend}"
title="{$product.default_image.legend}"
Expand Down

0 comments on commit 7c051de

Please sign in to comment.