]> 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>
Wed, 30 Jul 2014 11:37:23 +0000 (13:37 +0200)
committerStas Vilchik <vilchiks@gmail.com>
Wed, 30 Jul 2014 11:37:23 +0000 (13:37 +0200)
Remove bars

plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/size.html.erb
server/sonar-web/src/main/less/dashboard.less

index 0c49c2deaac3434c980d762a04f84263a06a6eac..e68012f744b6e3f481df4c975da2a1fdce7f95de 100644 (file)
@@ -48,9 +48,6 @@
                   <td class="thin right nowrap">
                     <%= ncloc.format_numeric_value(language_ncloc) %>
                   </td>
-                  <td>
-                    <%= barchart(:width => 50, :percent => (40 * Math.sqrt(language_ncloc.to_i) / max).to_i) %>
-                  </td>
                 </tr>
               <% end %>
             </table>
index 575d71276a4d066601d4c76cef8e3283637c9773..65987d2f5ec258ace11fdf46fee53486d7b8eb41 100644 (file)
 // Widget Histogram
 
 .widget-barchar {
+  max-width: 180px;
   line-height: 1;
 
   td {