Commit eeb9a93e authored by 好多大米's avatar 好多大米 Committed by GitHub

Select: fix long text overflow in multiple mode (#21237)

parent 72be8f53
...@@ -13,6 +13,9 @@ ...@@ -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 @@ ...@@ -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 @@ ...@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment