From 9284bd172a6b665bbbaadd5ec7580441617d99cd Mon Sep 17 00:00:00 2001 From: Stas Vilchik Date: Tue, 29 Jul 2014 17:15:26 +0200 Subject: [PATCH] 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 --- .../main/resources/org/sonar/plugins/core/widgets/size.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) %> - <%= 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) %> <% end %> -- 2.39.5