What's your biggest current challenge? Have your say in Community Polls along the right column.

Re: Resizing images in collection list columns on mobile Dawn theme

Solved

Resizing images in collection list columns on mobile Dawn theme

lushpupco
Tourist
9 0 5

I need to resize the images in the collection list section on mobile only to all be the same size. Unsure of the coding required to do so. I've currently got the below coding in place in the "component-card.css" file to allow for 3 columns instead of the standard two.

 

There are two sections on the homepage I need to update without affecting any other collection list sections on the page.

 

@media (max-width: 749px) {
.collection-list-wrapper .collection-card-wrapper .card__heading {
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
}
}

 

www.lushpupco.com

 

lushpupco_1-1728014933845.png

 

lushpupco_0-1728014918883.png

 

 

Accepted Solution (1)

Sayed_Safin
Shopify Partner
44 2 2

This is an accepted solution.

@media screen and (max-width: 750px) {
    .slider-mobile-gutter .collection-list {
        display: grid !important;
        grid-template-columns: 1fr 1fr 1fr !important;
    }
}

@lushpupco Please add this code in the.
Thanks.

Problem Solved? ✔Accept and Like solutions to help future merchants.
Github: https://github.com/safin777
Buy me a coffee

View solution in original post

Reply 1 (1)

Sayed_Safin
Shopify Partner
44 2 2

This is an accepted solution.

@media screen and (max-width: 750px) {
    .slider-mobile-gutter .collection-list {
        display: grid !important;
        grid-template-columns: 1fr 1fr 1fr !important;
    }
}

@lushpupco Please add this code in the.
Thanks.

Problem Solved? ✔Accept and Like solutions to help future merchants.
Github: https://github.com/safin777
Buy me a coffee