-
Notifications
You must be signed in to change notification settings - Fork 25
refactor: word breaks and truncation to tailwind #1097
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
Conversation
c1b7765 to
33326f5
Compare
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 refactors text truncation and word break functionality from custom CSS classes to Tailwind CSS utilities. It migrates oc-text-truncate to the standard truncate class and oc-text-nowrap to whitespace-nowrap, while also converting some custom CSS properties to Tailwind utilities for better consistency and maintainability.
Key changes include:
- Migration of custom truncation classes to Tailwind equivalents
- Conversion of CSS word-break and white-space properties to Tailwind utilities
- Addition of Tailwind @layer utilities for component-specific styling
- Removal of redundant CSS files and properties
Reviewed Changes
Copilot reviewed 62 out of 62 changed files in this pull request and generated 6 comments.
| File | Description |
|---|---|
| Various snapshot files | Updated test snapshots to reflect new Tailwind class names |
| Component Vue files | Replaced oc-text-truncate with truncate and oc-text-nowrap with whitespace-nowrap |
| Style files | Added Tailwind @layer utilities and removed redundant CSS properties |
| Design system components | Updated core components to use Tailwind utilities |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
33326f5 to
fa60ce9
Compare
fa60ce9 to
f4f7a09
Compare
kulmann
left a comment
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.
kulmann
left a comment
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.
…lwind refactor: word breaks and truncation to tailwind


Also fixes some truncations that did not work before.
refs #937
Migration
oc-text-truncate>truncateoc-text-nowrap>whitespace-nowrap