From 991c27793618aa3c5041739ae1ba45af59458d13 Mon Sep 17 00:00:00 2001 From: Stas Vilchik Date: Fri, 1 Apr 2016 17:26:29 +0200 Subject: [PATCH] improve rendering of ratings on project overview page --- .../main/js/apps/overview/main/code-smells.js | 46 +++++++++---------- .../src/main/js/apps/overview/main/risk.js | 32 +++++-------- .../src/main/less/pages/overview.less | 8 ++++ 3 files changed, 40 insertions(+), 46 deletions(-) diff --git a/server/sonar-web/src/main/js/apps/overview/main/code-smells.js b/server/sonar-web/src/main/js/apps/overview/main/code-smells.js index ff53578e60d..b5024d444f4 100644 --- a/server/sonar-web/src/main/js/apps/overview/main/code-smells.js +++ b/server/sonar-web/src/main/js/apps/overview/main/code-smells.js @@ -99,39 +99,35 @@ export const CodeSmells = React.createClass({ -
-
- - - -
-
-
-
- - {formatMeasure(debt, 'SHORT_WORK_DUR')} - +
+
+ + + {formatMeasure(codeSmells, 'SHORT_INT')} + + +
+ + + +
-
{getMetricName('effort')}
+
{getMetricName('code_smells')}
- - + + - {formatMeasure(codeSmells, 'SHORT_INT')} + {formatMeasure(debt, 'SHORT_WORK_DUR')} - + {this.renderTimeline('before', true)} diff --git a/server/sonar-web/src/main/js/apps/overview/main/risk.js b/server/sonar-web/src/main/js/apps/overview/main/risk.js index c732299dfb6..6cc95ad5811 100644 --- a/server/sonar-web/src/main/js/apps/overview/main/risk.js +++ b/server/sonar-web/src/main/js/apps/overview/main/risk.js @@ -102,17 +102,7 @@ export const Risk = React.createClass({ -
-
- - - -
-
-
+
+
+ + + +
{getMetricName('bugs')}
-
-
- - - -
-
+
+ + + +
{getMetricName('vulnerabilities')}
diff --git a/server/sonar-web/src/main/less/pages/overview.less b/server/sonar-web/src/main/less/pages/overview.less index c87ce90ba4d..de53c77286e 100644 --- a/server/sonar-web/src/main/less/pages/overview.less +++ b/server/sonar-web/src/main/less/pages/overview.less @@ -243,6 +243,14 @@ .overview-domain-leak & { text-align: center; } } +.overview-domain-measure-sup { + display: inline-block; + vertical-align: top; + margin-top: -4px; + margin-left: 6px; + font-size: 16px; +} + .overview-domain-timeline { position: absolute; z-index: 1; -- 2.39.5