-
Notifications
You must be signed in to change notification settings - Fork 20
Fix: add line break to all items' title and description for long text w/o spacing #857
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
Fix: add line break to all items' title and description for long text w/o spacing #857
Conversation
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.
Pull Request Overview
This PR fixes UI layout issues caused by long text without spaces in collection, dataset, and file cards by adding word-break CSS properties to prevent horizontal overflow.
- Adds
word-break: break-wordCSS property to card components and breadcrumbs - Includes test coverage for long unspaced titles to prevent regression
- Updates changelog to document the fix
Reviewed Changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| CollectionCard.spec.tsx | Adds test to verify long unspaced titles don't cause horizontal overflow |
| BreadcrumbsGenerator.module.scss | Adds word-break property to breadcrumb component |
| Citation.module.scss | Adds word-break property to citation description |
| FileCard.module.scss | Adds word-break property to file card component |
| DatasetCard.module.scss | Adds word-break property to dataset card component |
| CollectionCard.module.scss | Adds word-break property to collection card component |
| CHANGELOG.md | Documents the UI fix in changelog |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Co-authored-by: Copilot <[email protected]>
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.
Just a suggestion to the CHANGELOG but approving already 👍🏼 Nice fix!
And there are some merge conflicts in CHANGELOG file
…criptions-without-spacing-on-datasets
|
@ChengShi-1 theres a merge conflict - could you please update - thanks! |
…criptions-without-spacing-on-datasets
|
very nice - merging Uploading Screen Recording 2025-10-09 at 2.41.23 PM.mov… |

What this PR does / why we need it:
add a word-break of long text to the collection&dataset&file card and breadcrumb, to prevent a UI break.
The card extends too long if we have a long text without space

Which issue(s) this PR closes:
Special notes for your reviewer:
Suggestions on how to test this:
entering a long title/description to collection, dataset and file

Does this PR introduce a user interface change? If mockups are available, please link/include them here:
Is there a release notes or changelog update needed for this change?:
Additional documentation: