]> source.dussan.org Git - redmine.git/commitdiff
Give numbers in query sort criteria consistent width for non-monospaced fonts (#21119).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 1 Nov 2015 09:06:58 +0000 (09:06 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 1 Nov 2015 09:06:58 +0000 (09:06 +0000)
Patch by Felix Gliesche.

git-svn-id: http://svn.redmine.org/redmine/trunk@14790 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/views/queries/_form.html.erb
public/stylesheets/application.css

index d995777c5a1c058b53c76e5ab6017343e5503b3b..a7aae8a43fafa9c992349ff29a311c22b9e0f0a7 100644 (file)
@@ -54,7 +54,7 @@
 <% unless params[:gantt] %>
 <fieldset><legend><%= l(:label_sort) %></legend>
 <% 3.times do |i| %>
-<%= i+1 %>: 
+<%= content_tag(:span, "#{i+1}:", :class => 'query_sort_criteria_count')%>
 <%= label_tag "query_sort_criteria_attribute_" + i.to_s,
               l(:description_query_sort_criteria_attribute), :class => "hidden-for-sighted" %>
 <%= select_tag("query[sort_criteria][#{i}][]",
index 45dce69d4e1704b27a50bcd62af86219e7c9502a..6a367bb9b585055c089ff310d88671fcccf960e2 100644 (file)
@@ -264,6 +264,11 @@ table.messages td.last_message {text-align:left;}
 
 #query_form_content {font-size:90%;}
 
+.query_sort_criteria_count {
+  display: inline-block;
+  min-width: 1em;
+}
+
 table.query-columns {
   border-collapse: collapse;
   border: 0;