Stretched Images On Mobile (Magnin Template) - Question | JoomShaper
Black Friday sale is live with flat 50% OFF. Sale ends soon! Grab your deal now!

Stretched Images On Mobile (Magnin Template)

How

How

Template 3 years ago

Hello again. I've notice that SP Simple Portfolio with Image carousel module is streching images on mobile view. How to reproduce - when you open even your demo site og Magnin - just switch to mobile view. https://demo2.joomshaper.com/2021/magnin/index.php/component/spsimpleportfolio/item/1-gaming-feast?Itemid=0 As I found, image get fixed width and this shrink image instead of crop on overflow.

0
3 Answers
Rashida Rahman
Rashida Rahman
Accepted Answer
Support Agent 3 years ago #55826

Hi there!

Thanks for your query.

I have checked our demo, the image getting 100% width and height. https://prnt.sc/26oqpmm

You can use the following code in your custom CSS:

#sp-simpleportfolio .sp-simpleportfolio-description .sppb-carousel-extended-item img {
    height: auto !important;
}

Hope this will solve the issue for you!

Note: Path towards custom CSS: Extensions>Templates>Styles> Click on your current default template name then choose Template Options. Then find custom CSS within the custom code.

Best Regards

0
How
How
Accepted Answer
3 years ago #56031

Thank you Rashida, I've check your solution but I think it will look better if height would be 100% with hidden overflow on width without shrinking. Do you think it is possible?

Just remind I talk about mobile view ;)

https://i.postimg.cc/zDwF1ZgD/magnin-desktop.jpg

https://i.postimg.cc/hPjzZH85/magnin-mobile.jpg

0
Rashida Rahman
Rashida Rahman
Accepted Answer
Support Agent 3 years ago #56168

Hi,

You are welcome!

Without shrinking this is not possible to keep the view right that way I think.

However, you can try the following code instead:

@media (max-width: 767px){
#sp-simpleportfolio .sp-simpleportfolio-description .sppb-carousel-extended-item img {
   object-fit: contain;
}
}

Note: Path towards custom CSS: Extensions>Templates>Styles> Click on your current default template name then choose Template Options. Then find custom CSS within the custom code.

Best Regards

0