Mobile slideshow size reduction in refresh theme

My image size does not fit into my slideshow in my mobile view. But in my webview there are no issues. Please let me know how to reduce my slideshow size, so that my image fits into it.

Hello @FreshKingdom

You can try this code: it will be helpful to you

Go to the Online Store->Theme->Edit code->Assets->base.css>Add this code at the bottom.

.banner__media {
    height: 100% !important;
}

Thanks for your response.

Before implementing, I have few queries.

Is this code only to change mobile view or both mobile and computer views.

Computer view is ok for , only I need to change mobile view

Hello @FreshKingdom

You can try this code: it will be helpful to you

Go to the Online Store->Theme->Edit code->Assets->base.css>Add this code at the bottom.

@media screen and (min-width: 750px){
.banner__media {
    height: 100% !important;
}

Hi,

I tried this code, but it is not working.

I tried this one also and it gives an enlarged image. My expectation is slideshow size has to fit the image size

and not image to fit into slideshow size. im ok if the image size is small.

Thanks for your help

@FreshKingdom , add this code at the bottom of the base.css file

.media>img{
min-height: auto !important;
}

.slideshow__media.banner__media.media{
height: auto !important;
}

If I managed to help you then don’t forget to Like it and Mark it as Solution

It worked. Thanks for your help.

add this extra piece of code

@media screen and (max-width: 749px)
.banner:not(.banner--mobile-bottom):not(.email-signup-banner) .banner__box {
display: none;
}