How to fix image cropping issue on smaller screens for product pages?

I create Image With Text Section for product page. My image have text. This section height have “Adept To image” choice but width not have this choice. Dekspot and mobile is good. But if customer came from small screen macbook or tablet my image is automaticly crop which show very bad. I use Refresh thema and can fix this problem?

Store: https://bellafushion.com/products/astroglow-projector

Please check screenshot

Hi @hrytblsvr

This is Noah from PageFly - Shopify Page Builder App

Please add this code to your theme.liquid above the to get this solved

Step 1: Online Stores > Themes > More Actions > Edit code

Step 2: click on theme.liquid and paste the code above the


Hope this can help you solve the issue

Best regards,

Noah | PageFly

Add this code at the bottom of base.css file

.image-with-text .media > img {
object-fit: contain !important;
}

Add the below line of CSS code at the end of your base.css file.

.section-template--18955132174614__image-with-text-0-padding .media > img{
	object-fit: contain;
}