saadeghi / daisyui

๐ŸŒผ ๐ŸŒผ ๐ŸŒผ ๐ŸŒผ ๐ŸŒผ โ€ƒThe most popular, free and open-source Tailwind CSS component library
https://daisyui.com
MIT License
34.17k stars 1.31k forks source link

bug: Carousel of Cards does not behave as expected #3217

Closed jpeterson closed 3 weeks ago

jpeterson commented 2 months ago

What version of daisyUI are you using?

4.12.10

Which browsers are you seeing the problem on?

Chrome

Reproduction URL

https://play.tailwindcss.com/jCdSW9XQ2A

Describe your issue

Using the default Carousel example but swapping out the <img> elements in the example with the default Card example breaks the Carousel's horizontal scroll behavior, allowing the Cards to cause a horizontal page scroll instead.

github-actions[bot] commented 2 months ago

Thank you @jpeterson for reporting issues. It helps daisyUI a lot ๐Ÿ’š
I'll be working on issues one by one. I will help with this one as soon as a I find a solution.
In the meantime providing more details and reproduction links would be helpful.

saadeghi commented 3 weeks ago

Add a width to it. Like w-full
It's not a good idea if I add a default width to the library as default because the width depends on the content.

Let me know if you have a question.