diff --git a/src/components/NumberInfo/index.less b/src/components/NumberInfo/index.less index 7c179ac32b4a9edbb75146be370b0261c8f5c3c3..94a1360239421b93d3f4128987f72e0c1539075b 100644 --- a/src/components/NumberInfo/index.less +++ b/src/components/NumberInfo/index.less @@ -1,12 +1,5 @@ @import "~antd/lib/style/themes/default.less"; -.textOverflow() { - overflow: hidden; - text-overflow: ellipsis; - word-break: break-all; - white-space: nowrap; -} - .numberInfo { .suffix { color: @text-color; @@ -25,12 +18,18 @@ font-size: @font-size-base; height: 22px; line-height: 22px; - .textOverflow(); + overflow: hidden; + text-overflow: ellipsis; + word-break: break-all; + white-space: nowrap; } .numberInfoValue { margin-top: 4px; font-size: 0; - .textOverflow(); + overflow: hidden; + text-overflow: ellipsis; + word-break: break-all; + white-space: nowrap; & > span { color: @heading-color; display: inline-block;