-
Notifications
You must be signed in to change notification settings - Fork 523
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixed text overflow in search results to prevent UI distortion #10055
Fixed text overflow in search results to prevent UI distortion #10055
Conversation
from develop
merge fromdevelop branch
partially revert c9343d5 to fix investigation issues (ohcnetwork#9026)
WalkthroughThe pull request modifies the Changes
Assessment against linked issues
Possibly related PRs
Suggested labels
Suggested reviewers
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (2)
🚧 Files skipped from review as they are similar to previous changes (2)
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
✅ Deploy Preview for care-ohc ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
@rithviknishad ,fixed text overflow |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
🧹 Nitpick comments (1)
src/pages/FacilityOrganization/FacilityOrganizationView.tsx (1)
137-137
: LGTM! Consider adding overflow-wrap for better word breaking.The addition of
max-w-full break-words
effectively prevents text overflow. However, for even better handling of long words (especially URLs or long strings without spaces), consider addingoverflow-wrap-anywhere
.- <CardContent className="p-6 text-center text-gray-500 max-w-full break-words"> + <CardContent className="p-6 text-center text-gray-500 max-w-full break-words overflow-wrap-anywhere">
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
⛔ Files ignored due to path filters (1)
package-lock.json
is excluded by!**/package-lock.json
📒 Files selected for processing (2)
src/pages/FacilityOrganization/FacilityOrganizationView.tsx
(1 hunks)src/pages/Organization/OrganizationView.tsx
(1 hunks)
✅ Files skipped from review due to trivial changes (1)
- src/pages/Organization/OrganizationView.tsx
🔇 Additional comments (1)
src/pages/FacilityOrganization/FacilityOrganizationView.tsx (1)
137-137
: Verify consistent styling across organization views.The AI summary mentions similar changes in
OrganizationView.tsx
. Let's verify the consistency of these styling changes.✅ Verification successful
Styling is consistent across organization views
The styling pattern
p-6 text-center text-gray-500 max-w-full break-words
is consistently applied in bothFacilityOrganizationView.tsx
andOrganizationView.tsx
. Other organization-related components use a similar base style for their "no results" states.🏁 Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Search for CardContent styling in organization view components rg --type typescript 'CardContent.*className.*text-center.*text-gray-500' src/Length of output: 115
Script:
#!/bin/bash # Search for CardContent styling in .ts and .tsx files rg "CardContent.*className" --type-add 'ts:*.{ts,tsx}' --type ts -A 2 src/Length of output: 13295
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't see much value in showing that search text in view again... Let's keep it simple like how we show in other places. "No organisations found" |
package-lock.json
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
discard the lockfile changes
other than these, lgtm |
Co-authored-by: Rithvik Nishad <rithvikn2001@gmail.com>
Co-authored-by: Rithvik Nishad <rithvikn2001@gmail.com>
Co-authored-by: Rithvik Nishad <rithvikn2001@gmail.com>
@i0am0arunava Your efforts have helped advance digital healthcare and TeleICU systems. 🚀 Thank you for taking the time out to make CARE better. We hope you continue to innovate and contribute; your impact is immense! 🙌 |
Proposed Changes
@ohcnetwork/care-fe-code-reviewers
Merge Checklist
Summary by CodeRabbit