When I click to view an image larger on mobile, it becomes too big.
How can I adjust it so it doesn’t get so large?
When I click to view an image larger on mobile, it becomes too big.
How can I adjust it so it doesn’t get so large?
Hey @CStudios
Follow these Steps:
Go to Online Store
Edit Code
Find base.css file
Remove the following code from line number 10150
.product-images-gallery .large-image {
width: auto !important;
max-width: none !important;
height: auto !important;
max-height: none !important;
object-position: center;
}
RESULT:
If I managed to help you then, don’t forget to Like it and Mark it as Solution!
Best Regards,
Moeed
Thanks @Moeed
It now looks the same size as the version before you click it.
Is there another way user can zoom or enlarge an image?
@media (max-width: 767px) {
.product-images-gallery .large-image {
max-width: 100% !important;
}
.product-images-gallery img {
aspect-ratio: 1.2 !important;
}
}
Thank you!!
You’re welcome. Have a great day!