Skip to content

Commit

Permalink
Select: fix long text overflow in multiple mode (ElemeFE#21237)
Browse files Browse the repository at this point in the history
  • Loading branch information
cs1707 authored and hzsrc committed Feb 2, 2023
1 parent b5b31f2 commit 1a0f1e1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
3 changes: 3 additions & 0 deletions packages/theme-chalk/src/select-dropdown.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@
margin: 5px 0;

@include when(multiple) {
& .el-select-dropdown__item {
padding-right: 40px;
}
& .el-select-dropdown__item.selected {
color: $--select-option-selected-font-color;
background-color: $--select-dropdown-background;
Expand Down
10 changes: 7 additions & 3 deletions packages/theme-chalk/src/select.scss
Original file line number Diff line number Diff line change
Expand Up @@ -119,21 +119,25 @@
flex-wrap: wrap;
}

.el-tag__close {
margin-top: -2px;
@include e(tags-text) {
overflow: hidden;
text-overflow: ellipsis;
}

.el-tag {
box-sizing: border-box;
border-color: transparent;
margin: 2px 0 2px 6px;
background-color: #f0f2f5;
display: flex;
max-width: 100%;
align-items: center;

&__close.el-icon-close {
background-color: $--color-text-placeholder;
right: -7px;
top: 0;
color: $--color-white;
flex-shrink: 0;

&:hover {
background-color: $--color-text-secondary;
Expand Down

0 comments on commit 1a0f1e1

Please sign in to comment.