From bb77436b367abe70d029853dd83b6799616ba65c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=81=8F=E5=8F=B3?= Date: Tue, 1 Jan 2019 11:42:08 +0800 Subject: [PATCH] :bug: fix progress text align issue (#14024) * :bug: fix progress text align issue close #13997 * :white_check_mark: Set thresholds for codecov build failures --- .codecov.yml | 7 +++++-- components/progress/style/index.less | 7 +++---- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/.codecov.yml b/.codecov.yml index eb36cf4270..8b5a2b0e51 100644 --- a/.codecov.yml +++ b/.codecov.yml @@ -2,5 +2,8 @@ codecov: branch: master coverage: - precision: 1 - round: down + status: + project: + default: + # Fail the status if coverage drops by >= 0.1% + threshold: 0.1 diff --git a/components/progress/style/index.less b/components/progress/style/index.less index 7ba6036f05..8bff974b2a 100644 --- a/components/progress/style/index.less +++ b/components/progress/style/index.less @@ -123,18 +123,17 @@ } &-circle &-text { - display: block; position: absolute; width: 100%; text-align: center; line-height: 1; top: 50%; - transform: translateY(-50%); - left: 0; + left: 50%; + transform: translate(-50%, -50%); margin: 0; + padding: 0; color: @progress-text-color; white-space: normal; - padding: 0 6px; .@{iconfont-css-prefix} { font-size: 14 / 12em;