From 924626ee3b9cb50cd64ddb7d5f6e509e53de7d32 Mon Sep 17 00:00:00 2001 From: nikogu <644506165@qq.com> Date: Fri, 22 Dec 2017 16:07:09 +0800 Subject: [PATCH] remove overflow(), because of babel-css-modules bug --- src/components/NumberInfo/index.less | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/src/components/NumberInfo/index.less b/src/components/NumberInfo/index.less index 7c179ac3..94a13602 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; -- GitLab