From: Stas Vilchik Date: Wed, 2 Dec 2015 16:06:27 +0000 (+0100) Subject: SONAR-7068 improve alignment of measure on the overview page X-Git-Tag: 5.3-RC1~99 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=d3d06f465c22b4350890ae679a8093aa099aec10;p=sonarqube.git SONAR-7068 improve alignment of measure on the overview page --- diff --git a/server/sonar-web/src/main/js/apps/overview/main/coverage.js b/server/sonar-web/src/main/js/apps/overview/main/coverage.js index e30a1919483..4007f1e2f40 100644 --- a/server/sonar-web/src/main/js/apps/overview/main/coverage.js +++ b/server/sonar-web/src/main/js/apps/overview/main/coverage.js @@ -83,16 +83,23 @@ export const GeneralCoverage = React.createClass({ - - + + +
- - - - {formatMeasure(this.props.measures[coverageMetric], 'PERCENT')} - - +
+
+
+ + + {formatMeasure(this.props.measures[coverageMetric], 'PERCENT')} + + +
+
{getMetricName('coverage')}
+
+ {this.renderTests()}
{this.renderTimeline('before')} diff --git a/server/sonar-web/src/main/js/apps/overview/main/duplications.js b/server/sonar-web/src/main/js/apps/overview/main/duplications.js index 9e6a93f4b78..28476eab5d3 100644 --- a/server/sonar-web/src/main/js/apps/overview/main/duplications.js +++ b/server/sonar-web/src/main/js/apps/overview/main/duplications.js @@ -56,14 +56,21 @@ export const GeneralDuplications = React.createClass({ - - + + +
- - - {formatMeasure(this.props.measures['duplicated_lines_density'], 'PERCENT')} - +
+
+
+ + {formatMeasure(this.props.measures['duplicated_lines_density'], 'PERCENT')} + +
+
{getMetricName('duplications')}
+
+ {this.renderDuplicatedBlocks()}
{this.renderTimeline('before')} diff --git a/server/sonar-web/src/main/js/apps/overview/main/issues.js b/server/sonar-web/src/main/js/apps/overview/main/issues.js index e0772a63100..67b37bd6049 100644 --- a/server/sonar-web/src/main/js/apps/overview/main/issues.js +++ b/server/sonar-web/src/main/js/apps/overview/main/issues.js @@ -55,16 +55,26 @@ export const GeneralIssues = React.createClass({ - - - - - - - - {formatMeasure(this.props.measures.debt, 'SHORT_WORK_DUR')} - + + +
+
+ + + +
+
+
+
+ + {formatMeasure(this.props.measures.debt, 'SHORT_WORK_DUR')} + +
+
{getMetricName('debt')}
+
+ {formatMeasure(this.props.measures.issues, 'SHORT_INT')} diff --git a/server/sonar-web/src/main/less/pages/overview.less b/server/sonar-web/src/main/less/pages/overview.less index 1d047e74c4b..61b566b2920 100644 --- a/server/sonar-web/src/main/less/pages/overview.less +++ b/server/sonar-web/src/main/less/pages/overview.less @@ -179,8 +179,8 @@ z-index: 2; display: flex; flex: 1; - justify-content: space-around; align-items: center; + padding: 0 10%; } .overview-domain-measures + .overview-domain-measures { @@ -197,18 +197,25 @@ } .overview-domain-measure { + flex: 1; +} + +.overview-domain-measure + .overview-domain-measure { + padding-left: 15%; } .overview-domain-measure-value { line-height: 1; font-size: 36px; font-weight: 300; - text-align: center; + + .overview-domain-leak & { text-align: center; } } .overview-domain-measure-label { margin-top: 10px; - text-align: center; + + .overview-domain-leak & { text-align: center; } } .overview-domain-timeline {