]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-8645 Unexpected text wrapping on the Projects page
authorStas Vilchik <vilchiks@gmail.com>
Tue, 24 Jan 2017 13:51:48 +0000 (14:51 +0100)
committerStas Vilchik <vilchiks@gmail.com>
Tue, 24 Jan 2017 14:42:05 +0000 (15:42 +0100)
server/sonar-web/src/main/js/helpers/measures.js

index 7a50b3ebc19f812a9d19d4bee7eec03a5d75ba3d..505ebaf6bfc3b0e827f9e2525227f780b1d34838 100644 (file)
@@ -181,7 +181,7 @@ function floatVariationFormatter (value) {
 
 function percentFormatter (value) {
   value = parseFloat(value);
-  return numeral(value / 100).format('0,0.0%');
+  return value === 100 ? '100%' : numeral(value / 100).format('0,0.0%');
 }
 
 function percentVariationFormatter (value) {