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

Carousel display only 1 item when width is less than 770px #249

Open
IsraelKariti opened this issue Jul 24, 2024 · 1 comment
Open

Carousel display only 1 item when width is less than 770px #249

IsraelKariti opened this issue Jul 24, 2024 · 1 comment
Assignees
Labels
help wanted Extra attention is needed

Comments

@IsraelKariti
Copy link

IsraelKariti commented Jul 24, 2024

Describe the bug
when i shrink the window size horizontally the carousel will only show a single item when resolution hits 770px

To Reproduce

  1. clone this simple app: https://github.com/IsraelKariti/BookStore.git
  2. in the terminal go to the directory where you installed the app
  3. run the command: npm install
  4. run: npm start
  5. the app will open in browser
  6. shrink window to less than 770px
  7. see the carousel display only 1 element

Expected behavior
expected to display the same amount of items

Screenshots
If applicable, add screenshots to help explain your problem.
wide-screen

Desktop (please complete the following information):

  • OS: windows 11 Pro
  • Browser: chrome
  • Chrome version: 126.0.6478.128 (Official Build) (64-bit)

Additional context
Add any other context about the problem here.
narrow-screen

@IsraelKariti IsraelKariti added the bug Something isn't working label Jul 24, 2024
@vadymshymko
Copy link
Owner

@IsraelKariti try to set itemsToShow={numFav} instead of 1

image

@vadymshymko vadymshymko added help wanted Extra attention is needed and removed bug Something isn't working labels Aug 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants