]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-5482 The list of languages in the "Size" widget can be too long on views
authorStas Vilchik <vilchiks@gmail.com>
Tue, 29 Jul 2014 15:15:26 +0000 (17:15 +0200)
committerStas Vilchik <vilchiks@gmail.com>
Tue, 29 Jul 2014 15:15:26 +0000 (17:15 +0200)
Reduce the max width of bars to prevent measures overlapping

plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/size.html.erb

index 8ea173543c579d6662670c76b35a02d1e2605db5..0c49c2deaac3434c980d762a04f84263a06a6eac 100644 (file)
@@ -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 %>