Hey everyone, I'm a beginner in web design and I admit that I may be relying too much on using flex
. But hey, it's just so convenient!
So here's my issue: I have a component (created with TailwindCSS and React) that is an Infinite Loading List. However, the elements within the list are causing the container to expand even though it has overflow: auto
set. I've been racking my brain trying to figure this out.
https://i.sstatic.net/lBHn6.png
I made the background of the container dark to help illustrate the problem more clearly. If you want to take a look at the code itself, you can find it on https://pastebin.com/Vhuxii6j.
I'm really stuck and not sure what else to try. I attempted setting flex-shrink
on the container to prevent it from growing, but no luck. I also experimented with changing the child elements to inline-flex
, but that didn't solve the issue either.
Any help or advice would be greatly appreciated! Thank you in advance :)