From 90259f4f736129f19304d8541a8fe025bfcd8f32 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sun, 1 Nov 2015 09:06:58 +0000 Subject: [PATCH] Give numbers in query sort criteria consistent width for non-monospaced fonts (#21119). 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 | 2 +- public/stylesheets/application.css | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/app/views/queries/_form.html.erb b/app/views/queries/_form.html.erb index d995777c5..a7aae8a43 100644 --- a/app/views/queries/_form.html.erb +++ b/app/views/queries/_form.html.erb @@ -54,7 +54,7 @@ <% unless params[:gantt] %>
<%= l(:label_sort) %> <% 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}][]", diff --git a/public/stylesheets/application.css b/public/stylesheets/application.css index 45dce69d4..6a367bb9b 100644 --- a/public/stylesheets/application.css +++ b/public/stylesheets/application.css @@ -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; -- 2.39.5