sonner icon indicating copy to clipboard operation
sonner copied to clipboard

Make the toast content grow to fill remaining space

Open jessepinho opened this issue 1 year ago • 2 comments

At the moment, the content div only takes up as much space as is needed for the title/description of the toast.

This caused a problem for me when I rendered a progress bar in the toast description. By default, the progress bar was only as wide as the title, so it looked a bit funny. This PR fixes that by making the content grow to fill available space, so that variable-width items like progress bars take up the full content area by default.

jessepinho avatar Feb 16 '24 22:02 jessepinho

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
sonner ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 16, 2024 10:05pm

vercel[bot] avatar Feb 16 '24 22:02 vercel[bot]

I wonder if this will resolve the issue I'm facing here

salieflewis avatar Feb 17 '24 20:02 salieflewis