aboutsummaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorStas Vilchik <stas.vilchik@sonarsource.com>2017-10-12 17:00:25 +0200
committerStas Vilchik <stas.vilchik@sonarsource.com>2017-10-16 11:08:02 +0200
commit0c79204aa416db81fcc2c1119d2099bccc88c59f (patch)
tree2006ceed3ff860938b2c9ea1744e80c015873f57 /server
parent416c2af8844a41cfd078e80c38be96f15f76ee9e (diff)
downloadsonarqube-0c79204aa416db81fcc2c1119d2099bccc88c59f.tar.gz
sonarqube-0c79204aa416db81fcc2c1119d2099bccc88c59f.zip
SONAR-9691 Align size badges on project cards
Diffstat (limited to 'server')
-rw-r--r--server/sonar-web/src/main/js/apps/projects/components/ProjectCardOverallMeasures.tsx6
-rw-r--r--server/sonar-web/src/main/js/apps/projects/components/__tests__/__snapshots__/ProjectCardOverallMeasures-test.tsx.snap28
2 files changed, 17 insertions, 17 deletions
diff --git a/server/sonar-web/src/main/js/apps/projects/components/ProjectCardOverallMeasures.tsx b/server/sonar-web/src/main/js/apps/projects/components/ProjectCardOverallMeasures.tsx
index cdb325a02dd..8c3cdc978f2 100644
--- a/server/sonar-web/src/main/js/apps/projects/components/ProjectCardOverallMeasures.tsx
+++ b/server/sonar-web/src/main/js/apps/projects/components/ProjectCardOverallMeasures.tsx
@@ -141,15 +141,15 @@ export default function ProjectCardOverallMeasures({ measures }: Props) {
<div className="project-card-measure project-card-ncloc" data-key="ncloc">
<div className="project-card-measure-inner pull-right">
<div className="project-card-measure-number">
- <span className="spacer-right">
- <SizeRating value={Number(measures['ncloc'])} />
- </span>
<Measure
measure={{
metric: { key: 'ncloc', type: 'SHORT_INT' },
value: measures['ncloc']
}}
/>
+ <span className="spacer-left">
+ <SizeRating value={Number(measures['ncloc'])} />
+ </span>
</div>
<div className="project-card-measure-label">
<ProjectCardLanguages distribution={measures['ncloc_language_distribution']} />
diff --git a/server/sonar-web/src/main/js/apps/projects/components/__tests__/__snapshots__/ProjectCardOverallMeasures-test.tsx.snap b/server/sonar-web/src/main/js/apps/projects/components/__tests__/__snapshots__/ProjectCardOverallMeasures-test.tsx.snap
index c9e88821373..ed38e592644 100644
--- a/server/sonar-web/src/main/js/apps/projects/components/__tests__/__snapshots__/ProjectCardOverallMeasures-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/projects/components/__tests__/__snapshots__/ProjectCardOverallMeasures-test.tsx.snap
@@ -258,13 +258,6 @@ exports[`should render correctly with all data 1`] = `
<div
className="project-card-measure-number"
>
- <span
- className="spacer-right"
- >
- <SizeRating
- value={2053}
- />
- </span>
<Measure
measure={
Object {
@@ -276,6 +269,13 @@ exports[`should render correctly with all data 1`] = `
}
}
/>
+ <span
+ className="spacer-left"
+ >
+ <SizeRating
+ value={2053}
+ />
+ </span>
</div>
<div
className="project-card-measure-label"
@@ -298,13 +298,6 @@ exports[`should render ncloc correctly 1`] = `
<div
className="project-card-measure-number"
>
- <span
- className="spacer-right"
- >
- <SizeRating
- value={16549887}
- />
- </span>
<Measure
measure={
Object {
@@ -316,6 +309,13 @@ exports[`should render ncloc correctly 1`] = `
}
}
/>
+ <span
+ className="spacer-left"
+ >
+ <SizeRating
+ value={16549887}
+ />
+ </span>
</div>
<div
className="project-card-measure-label"