aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStas Vilchik <vilchiks@gmail.com>2014-07-29 17:15:26 +0200
committerStas Vilchik <vilchiks@gmail.com>2014-07-29 17:15:26 +0200
commit9284bd172a6b665bbbaadd5ec7580441617d99cd (patch)
treec2ce27fb0d1a49e1bf8ddbb2e9e6494bf6170b23
parenta3ce51c43bdb2e684dfc863e9e9f4435238ec206 (diff)
downloadsonarqube-9284bd172a6b665bbbaadd5ec7580441617d99cd.tar.gz
sonarqube-9284bd172a6b665bbbaadd5ec7580441617d99cd.zip
SONAR-5482 The list of languages in the "Size" widget can be too long on views
Reduce the max width of bars to prevent measures overlapping
-rw-r--r--plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/size.html.erb2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/size.html.erb b/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/size.html.erb
index 8ea173543c5..0c49c2deaac 100644
--- a/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/size.html.erb
+++ b/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/size.html.erb
@@ -49,7 +49,7 @@
<%= ncloc.format_numeric_value(language_ncloc) %>
</td>
<td>
- <%= barchart(:width => 70, :percent => (40 * Math.sqrt(language_ncloc.to_i) / max).to_i) %>
+ <%= barchart(:width => 50, :percent => (40 * Math.sqrt(language_ncloc.to_i) / max).to_i) %>
</td>
</tr>
<% end %>