Skip to content

Commit 6b8af0f

Browse files
author
Nick de Kleijn
committed
Remove height 100% from horizontal thumnbail and align
Height 100% makes the thumnbail to big and stretches the image outside it's container. This clips the image and also oversizes it which results in a pixelated image.
1 parent bb5c1e6 commit 6b8af0f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/web/mage/gallery/gallery.less

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -697,8 +697,8 @@
697697
}
698698
.fotorama_horizontal_ratio {
699699
.fotorama__img {
700-
.translateX(-50%);
701-
height: 100%;
700+
.translate(-50%, -50%);
701+
top: 50%;
702702
left: 50%;
703703
position: absolute;
704704
width: auto;

0 commit comments

Comments
 (0)