Skip to content

Commit b474e44

Browse files
authored
updated inline widths (#6)
updated inline widths
2 parents 256a165 + 20a7560 commit b474e44

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

view/frontend/templates/product/image_with_borders.phtml

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<?= /* @escapeNotVerified */ $block->getCustomAttributes() ?>
1414
src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII="
1515
data-src="<?= $block->escapeUrl($block->getImageUrl()) ?>"
16-
width="<?= $block->escapeHtmlAttr($block->getResizedImageWidth()) ?>"
17-
height="<?= $block->escapeHtmlAttr($block->getResizedImageHeight()) ?>"
16+
max-width="<?= $block->escapeHtmlAttr($block->getWidth()) ?>"
17+
max-height="<?= $block->escapeHtmlAttr($block->getHeight()) ?>"
1818
alt="<?= $block->escapeHtmlAttr($block->stripTags($block->getLabel(), null, true)) ?>"/></span>
1919
</span>

0 commit comments

Comments
 (0)