feat: add overflowWrap to toast options for better text wrapping #1336
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Adds
overflowWrap: "anywhere"CSS property to all Toaster components fromreact-hot-toastto improve text wrapping behavior in toast notifications. This prevents long text content (such as error messages, URLs, or technical strings) from overflowing toast containers and instead allows text to break and wrap to the next line for better readability.Changes Made:
apps/crossmint-nextjs/src/app/console/components/ClientProviders.tsx)apps/crossmint-nextjs/src/app/(wallet)/components/ClientProviders.tsx)apps/crossmint-nextjs/src/app/alpha/(console)/console/components/ClientProviders.tsx)apps/crossmint-nextjs/src/app/checkout/components/ClientProviders.tsx)apps/crossmint-nextjs/src/pages/_app.tsx)Requested by: Guille ([email protected])
Link to Devin run: https://app.devin.ai/sessions/75b0c010f0d041a892e5bc2d0e460d79
Test plan
overflowWrap: "anywhere"works correctly in supported browsersAreas to test manually:
Package updates
No package updates required - this is a CSS property addition only.
Review Focus Areas:
overflowWrapproperty achieves the intended text wrapping improvement