@imwaller Can you try this?
<nav class="mt-5 flex-1" aria-label="Sidebar">
<div class="flex flex-col space-y-1 px-2 min-width-0">
<span class="rounded-full bg-emerald-600 px-2 py-1 text-sm flex-grow">PHP</span>
</div>
</nav>
Hello I want my element child to take the min width of the flex parent and child can be more flexible with the text content. I use the flex-1, grow-*, shrink-*, basis-*, min-w-* and max-w-* but nothing happen.
When i use inline-flex the child element shrink but not full.
https://play.tailwindcss.com/UZSFa6JOwQ
Any solution?
<nav class="mt-5 flex-1" aria-label="Sidebar">
<div class="flex flex-col space-y-1 px-2">
<span class="rounded-full bg-emerald-600 px-2 py-1 text-sm">PHP</span>
</div>
</nav>
I found it sometimes need the child element to be fit and need to use max-w-fit.
Please or to participate in this conversation.