Utilizing TailwindCSS, I have the following code snippet:
<div class="box-border flex w-auto flex-row gap-2 rounded-2xl border p-4 my-4 mx-4">
<div class="grow-0">
<div class="flex h-full flex-col items-center justify-center">
<div class="ml-50%">icon</div>
</div>
</div>
<div className="grow">
<div class="flex flex-col">
<div>
<h2>Title</h2>
<p>Subtitle - Lorem ipsum dolor sit amet, consectetur adipiscing elit</p>
</div>
</div>
</div>
<!-- When viewed on a specific viewport (e.g. mobile), I want the following section to wrap onto its own line -->
<div class="grow">
<div class="flex h-full items-center justify-end">
<button class="w-32 rounded-full bg-green-100">Start action</button>
</div>
</div>
</div>
My goal is to make the "Start action" flexbox area wrap independently when viewed on specific viewports, while maintaining the layout of the icon and title/subtitle sections unchanged. Unfortunately, the flex grow styling seems to be preventing flex wrap from functioning as expected. Any suggestions on how to achieve this? It may be a simple fix that is not immediately apparent to me!
To see an example in action, you can view it in a Tailwind playground here: https://play.tailwindcss.com/l2E7okOqOV