sonner
sonner copied to clipboard
Make the toast content grow to fill remaining space
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.
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 |
I wonder if this will resolve the issue I'm facing here