mirror of https://github.com/ElemeFE/element
Select: fix long text overflow in multiple mode (#21237)
parent
72be8f536f
commit
eeb9a93e86
|
@ -13,6 +13,9 @@
|
||||||
margin: 5px 0;
|
margin: 5px 0;
|
||||||
|
|
||||||
@include when(multiple) {
|
@include when(multiple) {
|
||||||
|
& .el-select-dropdown__item {
|
||||||
|
padding-right: 40px;
|
||||||
|
}
|
||||||
& .el-select-dropdown__item.selected {
|
& .el-select-dropdown__item.selected {
|
||||||
color: $--select-option-selected-font-color;
|
color: $--select-option-selected-font-color;
|
||||||
background-color: $--select-dropdown-background;
|
background-color: $--select-dropdown-background;
|
||||||
|
|
|
@ -119,8 +119,9 @@
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
.el-tag__close {
|
@include e(tags-text) {
|
||||||
margin-top: -2px;
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
}
|
}
|
||||||
|
|
||||||
.el-tag {
|
.el-tag {
|
||||||
|
@ -128,12 +129,15 @@
|
||||||
border-color: transparent;
|
border-color: transparent;
|
||||||
margin: 2px 0 2px 6px;
|
margin: 2px 0 2px 6px;
|
||||||
background-color: #f0f2f5;
|
background-color: #f0f2f5;
|
||||||
|
display: flex;
|
||||||
|
max-width: 100%;
|
||||||
|
align-items: center;
|
||||||
|
|
||||||
&__close.el-icon-close {
|
&__close.el-icon-close {
|
||||||
background-color: $--color-text-placeholder;
|
background-color: $--color-text-placeholder;
|
||||||
right: -7px;
|
|
||||||
top: 0;
|
top: 0;
|
||||||
color: $--color-white;
|
color: $--color-white;
|
||||||
|
flex-shrink: 0;
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
background-color: $--color-text-secondary;
|
background-color: $--color-text-secondary;
|
||||||
|
|
Loading…
Reference in New Issue