set swiperSlide height: auto
using the angular package
#4372
-
Hey guys, I just recently start using Swiper with Angular although I am not new to Swiper. Right now I have a project were I have the following swiper component: <swiper class="font-sans w-full flex-1" [allowTouchMove]="false">
<!-- First slide -->
<ng-template class="flex flex-col overflow-auto" swiperSlide>
<!-- More slides -->
</swiper> Everything until this point works perfectly fine as expected. The problem is that I want to change the property of the Here I show a picture where the <!-- First slide -->
<ng-template class="h-full flex flex-col overflow-auto" swiperSlide> Any ideas? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Apparently it happens because of the order how your CSS included. Or just add custom class to swiper-slide with |
Beta Was this translation helpful? Give feedback.
-
Or make sure your CSS files included AFTER swiper's styles |
Beta Was this translation helpful? Give feedback.
Or make sure your CSS files included AFTER swiper's styles