Skip to content

Commit 08b4906

Browse files
author
Mohan Ahuja
committed
ACP2E-71: Shifting of the PDP main image
- Updated gallery.less CSS file to not shift image after it has been loaded on product details page only for screen min-width 768.
1 parent 40f6d52 commit 08b4906

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/web/mage/gallery/gallery.less

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -781,7 +781,10 @@
781781
max-height: 100%;
782782
max-width: 100%;
783783
position: absolute;
784-
top:49.5%;
784+
top: 50%;
785+
@media all and (min-width: 768px) {
786+
top:49.5%;
787+
}
785788
.fotorama-translate3d(-50%, -50%, 0);
786789
transition-duration: @fotorama-fullscreen-zoom-time;
787790
transition-property: width, height, top, left;

0 commit comments

Comments
 (0)