Skip to content

Commit 182a474

Browse files
author
Timon de Groot
committed
Get rid of max-width and max-height in image_with_borders.phtml
1 parent 1a79775 commit 182a474

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/code/Magento/Catalog/view/frontend/templates/product/image_with_borders.phtml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<?= $escaper->escapeHtmlAttr($block->getCustomAttributes()) ?>
1818
src="<?= $escaper->escapeUrl($block->getImageUrl()) ?>"
1919
loading="lazy"
20-
max-width="<?= $escaper->escapeHtmlAttr($block->getWidth()) ?>"
21-
max-height="<?= $escaper->escapeHtmlAttr($block->getHeight()) ?>"
20+
width="<?= $escaper->escapeHtmlAttr($block->getWidth()) ?>"
21+
height="<?= $escaper->escapeHtmlAttr($block->getHeight()) ?>"
2222
alt="<?= /* @noEscape */ $block->stripTags($block->getLabel(), null, true) ?>"/></span>
2323
</span>

0 commit comments

Comments
 (0)