Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When creating a carousel, no flex is created in the Slider Component. #418

Open
Tchaikovsky1114 opened this issue Aug 14, 2022 · 6 comments

Comments

@Tchaikovsky1114
Copy link

        <CarouselProvider className="" naturalSlideWidth={400} naturalSlideHeight={400} totalSlides={selectedImage.length} orientation="horizontal">
        <Slider className='' >

          {selectedImage.map((item,index) => (
            <Slide key={index + ''} index={index} className="" tabIndex={index}>
              <img className='mx-auto w-full max-h-[300px] h-[100%] object-contain' src={item} alt="" />
              </Slide>
          ))}
        
        </Slider>
        </CarouselProvider>

result :

no flex

@Conor-Hinchee
Copy link
Collaborator

Conor-Hinchee commented Aug 18, 2022

You seem to be missing the global CSS classes could you please try again with
import 'pure-react-carousel/dist/react-carousel.es.css';

https://github.com/express-labs/pure-react-carousel#-tutorial step #3 on the README

@stale
Copy link

stale bot commented Apr 27, 2023

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale Issues that became stale label Apr 27, 2023
@lokinmodar
Copy link

i'm importing the necessary css file but it still does not create the display: flex....

react-carousel

@stale stale bot removed the stale Issues that became stale label May 13, 2023
@stale
Copy link

stale bot commented Jun 7, 2023

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale Issues that became stale label Jun 7, 2023
@SaerwenLis
Copy link

image
can you fix this?

@stale stale bot removed the stale Issues that became stale label Jun 26, 2023
@stale
Copy link

stale bot commented Aug 28, 2023

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale Issues that became stale label Aug 28, 2023
@stale stale bot removed the stale Issues that became stale label Sep 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants