aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@gmail.com>2013-03-05 15:24:56 +0100
committerSimon Brandhof <simon.brandhof@gmail.com>2013-03-05 15:25:14 +0100
commita1396c6a3fd5a5a3a96228284972ae9e2ec119ad (patch)
treeef8c4046473c3c98a773027c4fede1fe9c848b93
parente1aab863c93f17bed238ab35a73fbe00923b8d17 (diff)
downloadsonarqube-a1396c6a3fd5a5a3a96228284972ae9e2ec119ad.tar.gz
sonarqube-a1396c6a3fd5a5a3a96228284972ae9e2ec119ad.zip
Fix alignment of trend icons
-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.css8
3 files changed, 8 insertions, 8 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 58e7081283c..2ceb3aec9c9 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", :width => pixels, :height => pixels, :alt => '') : nil
+ return options[:empty] ? image_tag("trend/0#{size}.png", :class => 'trendIcon', :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", :width => pixels, :height => pixels, :alt => '', :class => 'trendIcon')
+ image_tag("trend/#{filename}#{size}.png", :alt => '', :class => 'trendIcon')
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 71e0751eca6..8eb0ab137e4 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) + '&nbsp;' + trend_icon(measure, :empty => true)
else
- format_measure(measure)
+ format_measure(measure) + '&nbsp;'
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 f5e4278b756..214ca450c84 100644
--- a/sonar-server/src/main/webapp/stylesheets/style.css
+++ b/sonar-server/src/main/webapp/stylesheets/style.css
@@ -1502,7 +1502,9 @@ option.sev_BLOCKER {
color: #cc0000 !important;
}
.trendIcon {
- padding: 0 2px;
+ padding: 0;
+ width: 10px;
+ height: 10px;
}
/* ------------------- HELP ------------------- */
@@ -1518,9 +1520,7 @@ option.sev_BLOCKER {
color: #444;
vertical-align: bottom;
font-weight: bold;
- background-repeat: no-repeat;
- background-position: left center;
- background-image: url('../images/information.png');
+ background: url('../images/information.png') no-repeat left center;
}
.help p {