themesberg / flowbite

Open-source UI component library and front-end development framework based on Tailwind CSS
https://flowbite.com
MIT License
7.35k stars 711 forks source link

Carousel don't show item when they have only 1 #740

Closed kichetof closed 5 months ago

kichetof commented 7 months ago

Hello,

Thanks for your excellent library, really enjoy it!! 🔥

I've discover a bug with a Carousel who get items from external API. When you've only 1 item, you get a white screen (item is on the right overflow)

Bug with latest version 2.2.0 (and certainly before, but not yet tested) I reproduced it with the doc example https://jsfiddle.net/jmto6b9e/3/

As you can see, nothing is displayed with only 1 item

Capture d’écran 2023-12-01 à 11 49 13

When you've 2 or more items, you'll see it:

Capture d’écran 2023-12-01 à 11 50 19

I hope that you'll have a fix for it :) Thanks a lot! Cheers

kichetof commented 6 months ago

Happy new year! 🎉

This issue will be resolved when #550 will be merged :)

zoltanszogyenyi commented 5 months ago

Fixed with the new PR merge. Thanks!