Skip to content

Commit 3ac5cdf

Browse files
authored
ENGCOM-5536: Fix horizontal media gallery thumbnails pixelated #23884
2 parents 6b3f81b + e1038dc commit 3ac5cdf

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-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;

lib/web/mage/gallery/module/_mixins.less

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,13 @@
3030
transform: translateY(@value);
3131
}
3232

33+
.translate(@x, @y) {
34+
-webkit-transform: translate(@x, @y);
35+
-ms-transform: translateY(@x, @y);
36+
-o-transform: translateY(@x, @y);
37+
transform: translateY(@x, @y);
38+
}
39+
3340
.fotorama-shadow-gradient(@x, @y) {
3441
background-image: linear-gradient(transparent, rgba(0, 0, 0, 0.2) 25%, rgba(0, 0, 0, 0.3) 75%, transparent), radial-gradient(farthest-side at @x @y, rgba(0, 0, 0, 0.4), transparent);
3542
}

0 commit comments

Comments
 (0)