-
Notifications
You must be signed in to change notification settings - Fork 25
refactor: overflow to tailwind #1131
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
aa65dff to
a51c9bb
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 overflow CSS classes from custom OpenCloud classes to standard Tailwind CSS classes. The migration simplifies the codebase by removing custom CSS and adopting Tailwind's utility classes for better consistency and maintainability.
Key changes:
- Replaced
oc-overflow-hiddenwithoverflow-hidden - Replaced
oc-overflow-autowithoverflow-autooroverflow-y-auto - Replaced
oc-text-overflowwithmax-w-full,overflow-hidden,truncate, oroverflow-visibledepending on context - Removed corresponding SCSS styles in favor of Tailwind classes
Reviewed Changes
Copilot reviewed 62 out of 62 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| packages/web-runtime/src/pages/account.vue | Migrated overflow CSS from SCSS to Tailwind class |
| packages/web-runtime/src/layouts/Application.vue | Updated layout overflow classes to Tailwind utilities |
| packages/web-runtime/src/components/UploadInfo.vue | Replaced custom overflow CSS with Tailwind class |
| packages/web-runtime/src/components/Topbar/UserMenu.vue | Updated dropdown overflow class |
| packages/web-runtime/src/components/Topbar/Notifications.vue | Migrated notification dropdown overflow styles |
| packages/web-runtime/src/components/SidebarNav/SidebarNav.vue | Updated sidebar overflow classes |
| packages/web-runtime/src/App.vue | Migrated root app overflow from SCSS to Tailwind |
| packages/web-pkg/src/components/SideBar/SideBar.vue | Updated sidebar panel overflow handling |
| packages/web-pkg/src/components/FilesList/ResourceTile.vue | Fixed resource name wrapper overflow |
| packages/web-pkg/src/components/FilesList/ResourceListItem.vue | Updated text overflow classes for resource items |
| packages/web-pkg/src/components/Filters/DateFilter.vue | Migrated filter overflow styles |
| packages/web-pkg/src/components/Modals/SaveAsModal.vue | Updated modal overflow handling |
| packages/design-system/src/components/OcModal/OcModal.vue | Migrated modal overflow to Tailwind |
| packages/design-system/src/components/OcCheckbox/OcCheckbox.vue | Updated checkbox overflow class |
| packages/design-system/src/components/OcProgress/OcProgress.vue | Migrated progress bar overflow |
| packages/design-system/src/styles/theme/oc-form.scss | Removed custom overflow styles |
| Test snapshots | Updated to reflect new Tailwind class names |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
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.
so nice to see, that entire style blocks are now going away 🥳
refactor: overflow to tailwind
refs #937
Migration
oc-overflow-hidden>overflow-hiddenoc-overflow-auto>overflow-autooc-text-overflow> depends a bit on the situation, usuallymax-w-fulland/oroverflow-hidden