mirror of https://github.com/ElemeFE/element
Tag: Fix text wrap (#1785)
When the width of parent container is too narrow, text in tag will be break into lines. 當父容器寬度不足時,Tag 文字會產生換行的現象pull/1818/head
parent
2144c02bd3
commit
71a3b5ad2f
|
@ -14,6 +14,7 @@
|
||||||
border-radius: var(--tag-border-radius);
|
border-radius: var(--tag-border-radius);
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
border: 1px solid transparent;
|
border: 1px solid transparent;
|
||||||
|
white-space: nowrap;
|
||||||
|
|
||||||
& .el-icon-close {
|
& .el-icon-close {
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
|
|
Loading…
Reference in New Issue