diff options
author | Simon Brandhof <simon.brandhof@gmail.com> | 2013-03-06 16:11:13 +0100 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@gmail.com> | 2013-03-06 16:11:13 +0100 |
commit | 8bf1c4a67c9987711a8bf55ad5c8eefcb3192e93 (patch) | |
tree | 72a8da6b5433666607dc5b88f046c0272db53bbd | |
parent | 9166ec7766a42ae5a2cf8422199dd9b7d7a1ae1d (diff) | |
download | sonarqube-8bf1c4a67c9987711a8bf55ad5c8eefcb3192e93.tar.gz sonarqube-8bf1c4a67c9987711a8bf55ad5c8eefcb3192e93.zip |
Fix height of measure rows
3 files changed, 4 insertions, 9 deletions
diff --git a/sonar-server/src/main/webapp/WEB-INF/app/helpers/application_helper.rb b/sonar-server/src/main/webapp/WEB-INF/app/helpers/application_helper.rb index 2ceb3aec9c9..9dadd00f5ec 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/helpers/application_helper.rb +++ b/sonar-server/src/main/webapp/WEB-INF/app/helpers/application_helper.rb @@ -381,7 +381,7 @@ module ApplicationHelper pixels = 10 end if m.nil? || m.tendency.nil? || m.tendency==0 - return options[:empty] ? image_tag("trend/0#{size}.png", :class => 'trendIcon', :alt => '') : nil + return options[:empty] ? image_tag("trend/0#{size}.png", :width => pixels, :height => pixels, :alt => '') : nil end filename = m.tendency.to_s @@ -393,7 +393,7 @@ module ApplicationHelper when 1 filename+= '-green' end - image_tag("trend/#{filename}#{size}.png", :alt => '', :class => 'trendIcon') + image_tag("trend/#{filename}#{size}.png", :alt => '', :width => pixels, :height => pixels) end # diff --git a/sonar-server/src/main/webapp/WEB-INF/app/helpers/measures_helper.rb b/sonar-server/src/main/webapp/WEB-INF/app/helpers/measures_helper.rb index 8eb0ab137e4..14e18b37495 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/helpers/measures_helper.rb +++ b/sonar-server/src/main/webapp/WEB-INF/app/helpers/measures_helper.rb @@ -40,9 +40,9 @@ module MeasuresHelper if column.period format_variation(measure, :index => column.period, :style => 'light') elsif column.metric.numeric? - format_measure(measure) + ' ' + trend_icon(measure, :empty => true) + format_measure(measure) + ' ' + trend_icon(measure, :empty => true) else - format_measure(measure) + ' ' + format_measure(measure) + ' ' end elsif column.key=='name' diff --git a/sonar-server/src/main/webapp/stylesheets/style.css b/sonar-server/src/main/webapp/stylesheets/style.css index 51901543a31..064a8e31164 100644 --- a/sonar-server/src/main/webapp/stylesheets/style.css +++ b/sonar-server/src/main/webapp/stylesheets/style.css @@ -1501,11 +1501,6 @@ option.sev_BLOCKER { /* worst */ color: #cc0000 !important; } -.trendIcon { - padding: 0; - width: 10px; - height: 10px; -} /* ------------------- HELP ------------------- */ .help { |