Skip to content

Commit

Permalink
Select: fix long text overflow in multiple mode
Browse files Browse the repository at this point in the history
  • Loading branch information
cs1707 committed Aug 17, 2021
1 parent 72be8f5 commit 2dfdaa4
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 2dfdaa4

Please sign in to comment.