fix slider items on mobile (#15377)

Co-authored-by: Arhell <arhell333@gmail.com>
This commit is contained in:
Istio Automation 2024-07-02 19:38:50 -04:00 committed by GitHub
parent a60b794146
commit 53eadb8c0f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 16 additions and 0 deletions

View File

@ -35,6 +35,14 @@
autoScroll: {
speed: 1,
},
breakpoints: {
768: {
perPage: 2,
},
534: {
perPage: 1,
},
},
pagination: false,
}).mount( window.splide.Extensions );
});

View File

@ -100,6 +100,10 @@
width: 100%;
transition: filter .175s ease-in;
@media(max-width: $bp-md) {
height: 120px;
}
img {
max-height: 100%;
max-width: 200px;
@ -111,5 +115,9 @@
left: 0;
right: 0;
margin: auto;
@media(max-width: $bp-md) {
max-width: 260px;
}
}
}