From 4cfcf29a5facec43b3b6ed0aacb0a852d752b858 Mon Sep 17 00:00:00 2001 From: afc163 Date: Mon, 15 Jun 2015 17:30:24 +0800 Subject: [PATCH] update progress size --- components/progress/index.jsx | 6 +++--- style/components/progress.less | 4 +++- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/components/progress/index.jsx b/components/progress/index.jsx index b280ad2901..39a3e0a29e 100644 --- a/components/progress/index.jsx +++ b/components/progress/index.jsx @@ -69,9 +69,9 @@ var Line = React.createClass({ var Circle = React.createClass({ getDefaultProps: function () { return { - width: 126, + width: 132, percent: 0, - strokeWidth: 4, + strokeWidth: 6, status: 'normal' // exception }; }, @@ -91,7 +91,7 @@ var Circle = React.createClass({ 'height': this.props.width }; var wrapStyle = { - 'font-size': this.props.width * 0.2 + 'font-size': this.props.width * 0.16 + 6 }; var textStyle = { 'color': statusColorMap[this.props.status] diff --git a/style/components/progress.less b/style/components/progress.less index 0e8e1f9320..52a9356b03 100644 --- a/style/components/progress.less +++ b/style/components/progress.less @@ -39,7 +39,9 @@ width: 100%; text-align: center; line-height: 1; - top: 38%; + font-weight: bold; + top: 50%; + transform: translateY(-50%); left: 0; .anticon { -- GitLab