-
Notifications
You must be signed in to change notification settings - Fork 14.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When the [Bug Report] select component is multiple-selected, the text is too long and the display box overflows. #15473
Comments
Translation of this issue: Element UI version2.8.2 OS/Browsers versionChrome/win10 Vue version2.6.10 Reproduction LinkHttps://codepen.io/anon/pen/jobgBq?&editable=true Steps to reproduceSelect the first item What is Expected?Can Display Box Adapt Width What is actually happening?Text overflow |
Any idea on how to fix that one ? 🙏 Monkey patched it with .el-tag--info {
display: flex !important;
max-width: 100% !important;
}
.el-select__tags-text {
display: inline-block !important;
max-width: 90% !important;
overflow: hidden !important;
text-overflow: ellipsis !important;
}
.el-tag__close {
align-self: center !important;
} |
@kissu The collapse-tags have a little problem |
Pretty sure you can fix that one with some height on the select box. 😁 |
Despite the height, there should be no dots in +... .el-select__tags-text {
display: inline-block !important;
max-width: 100% !important;
overflow: hidden !important;
text-overflow: ellipsis !important;
} |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Element UI version
2.8.2
OS/Browsers version
chrome/win10
Vue version
2.6.10
Reproduction Link
https://codepen.io/anon/pen/jobgBq?&editable=true
Steps to reproduce
选择select第一项
What is Expected?
显示框可以自适应宽度吗
What is actually happening?
文本溢出
The text was updated successfully, but these errors were encountered: