Skip to content

Commit bb77436

Browse files
authored
🐛 fix progress text align issue (ant-design#14024)
* 🐛 fix progress text align issue close ant-design#13997 * ✅ Set thresholds for codecov build failures
1 parent 75bfd13 commit bb77436

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

Diff for: .codecov.yml

+5-2
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,8 @@ codecov:
22
branch: master
33

44
coverage:
5-
precision: 1
6-
round: down
5+
status:
6+
project:
7+
default:
8+
# Fail the status if coverage drops by >= 0.1%
9+
threshold: 0.1

Diff for: components/progress/style/index.less

+3-4
Original file line numberDiff line numberDiff line change
@@ -123,18 +123,17 @@
123123
}
124124

125125
&-circle &-text {
126-
display: block;
127126
position: absolute;
128127
width: 100%;
129128
text-align: center;
130129
line-height: 1;
131130
top: 50%;
132-
transform: translateY(-50%);
133-
left: 0;
131+
left: 50%;
132+
transform: translate(-50%, -50%);
134133
margin: 0;
134+
padding: 0;
135135
color: @progress-text-color;
136136
white-space: normal;
137-
padding: 0 6px;
138137

139138
.@{iconfont-css-prefix} {
140139
font-size: 14 / 12em;

0 commit comments

Comments
 (0)