aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@gmail.com>2013-03-06 16:11:13 +0100
committerSimon Brandhof <simon.brandhof@gmail.com>2013-03-06 16:11:13 +0100
commit8bf1c4a67c9987711a8bf55ad5c8eefcb3192e93 (patch)
tree72a8da6b5433666607dc5b88f046c0272db53bbd
parent9166ec7766a42ae5a2cf8422199dd9b7d7a1ae1d (diff)
downloadsonarqube-8bf1c4a67c9987711a8bf55ad5c8eefcb3192e93.tar.gz
sonarqube-8bf1c4a67c9987711a8bf55ad5c8eefcb3192e93.zip
Fix height of measure rows
-rw-r--r--sonar-server/src/main/webapp/WEB-INF/app/helpers/application_helper.rb4
-rw-r--r--sonar-server/src/main/webapp/WEB-INF/app/helpers/measures_helper.rb4
-rw-r--r--sonar-server/src/main/webapp/stylesheets/style.css5
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) + '&nbsp;' + trend_icon(measure, :empty => true)
+ format_measure(measure) + ' ' + trend_icon(measure, :empty => true)
else
- format_measure(measure) + '&nbsp;'
+ 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 {