Closed lisovskiy1337 closed 2 years ago
Hi there, I took a look at your examples, I saw that you have another file where you didn't type the example, which could be useful to help you in the meantime from what I saw the error seems to me when using flexbox.
Since StyledCarouselWrapper takes a flex display, there is a parent div right on top of it that is not flexed either!
You would need to insert in the parent Div of StyledCarouselWrapper , Display flex and flex-wrap: nowrap, to be exact there is a div above the StyledCarouselWrapper component that needs to be flex.
Or you can do as the example below, pass a className and then adjust the size and flexibility as well.
Hope this helps, I tested it on my machine and it worked correctly.
Hi guys, I'm a bit tired of not being able to find the problem, so.......I have something like this:
and the next slide is like that)
I just copypasted slider from my last project and Idk wtf)
import React from 'react' import "slick-carousel/slick/slick.css"; import "slick-carousel/slick/slick-theme.css"; import { StyledCarousel, StyledCarouselWrapper } from './TopMatchSliderElements';
styled components:
Please help me