fix: prevent Settings dialog deformation on long error messages - #218
fix: prevent Settings dialog deformation on long error messages#218Joelp03 wants to merge 1 commit into
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review infoConfiguration used: Organization UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
WalkthroughAdded the CSS class Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes 🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches
🧪 Generate unit tests (beta)
Tip Try Coding Plans. Let us write the prompt for your AI agent so you can ship faster (with fewer bugs). Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
| {testResult && ( | ||
| <div | ||
| className={`rounded-md border px-3 py-2 text-sm ${ | ||
| className={`rounded-md border px-3 py-2 text-sm break-all ${ |
There was a problem hiding this comment.
break-all fixes overflow but it also wraps normal text mid-word. break-words usually still handles long URLs while keeping typical error messages more readable.
| className={`rounded-md border px-3 py-2 text-sm break-all ${ | |
| className={`rounded-md border px-3 py-2 text-sm break-words ${ |
Title: fix: prevent error message overflow in API modal
Description: This PR fixes a UI bug where long error strings, such as billing URLs, were overflowing the modal's horizontal boundaries. By applying word-break: break-all, we ensure that the container respects its parent width regardless of the text length.
Note
Adds
break-allCSS class to two message container elements in the Settings component to prevent long error messages from overflowing their parent container. This is a targeted fix that applies to both success and error message displays in the Settings dialog.Written by Tembo for commit d487269.