fix(components): [transfer] prevent title width overflow#23166
Conversation
|
👋 @E66Crisp, seems like this is your first time contribution to element-plus. |
commit: |
|
🧪 Playground Preview: https://element-plus.run/?pr=23166 |
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
📝 WalkthroughWalkthroughHeader title and checked-summary in the transfer panel were wrapped in dedicated spans with class names; related SCSS was adjusted to a flex layout and new classes added; a unit test selector was updated to target Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches
🧪 Generate unit tests (beta)
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 |
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@packages/theme-chalk/src/transfer.scss`:
- Around line 159-163: The rule violation is caused by the blockless `@include`
utils-ellipsis; immediately followed by a declaration, so update the
.#{$namespace}-transfer-panel__header-title rule to add a blank line after the
`@include` utils-ellipsis; and before the subsequent declaration (flex: 1) so the
declaration-empty-line-before lint rule is satisfied; locate the selector
.#{$namespace}-transfer-panel__header-title and insert one empty line between
the `@include` utils-ellipsis; line and the flex: 1 declaration.
- Around line 173-189: The footer styles for
.#{$namespace}-transfer-panel__footer currently remove left spacing and set an
unnecessary flex-direction; restore left offset by adding the same left padding
used in the header (e.g., padding-left: 15px or the equivalent CSS var) and
remove flex-direction: column to simplify the layout, and ensure the nested
.#{$namespace}-checkbox inherits/keeps its color rule — update the
.#{$namespace}-transfer-panel__footer block accordingly.
Co-authored-by: rzzf <[email protected]>
Co-authored-by: rzzf <[email protected]>
Co-authored-by: rzzf <[email protected]>
|
@E66Crisp Thanks for your contribution! ❤️ |

Please make sure these boxes are checked before submitting your PR, thank you!
devbranch.As you can see, when the title content is too long, it covers the elements on the right, and when the footer content is too long, it also fails to stay centered.
Expected behavior:

Summary by CodeRabbit