summaryrefslogtreecommitdiffstats
path: root/app/views/queries/_columns.html.erb
diff options
context:
space:
mode:
authorMarius Balteanu <marius.balteanu@zitec.com>2023-12-28 04:16:49 +0000
committerMarius Balteanu <marius.balteanu@zitec.com>2023-12-28 04:16:49 +0000
commit5eccab9295524e02de81a86766d7468cf55a405c (patch)
tree15d1d68649086970a36f004787f94ecc943cc5e9 /app/views/queries/_columns.html.erb
parentc13d59720951cb7009b5bf9ef150495f7d197346 (diff)
downloadredmine-5eccab9295524e02de81a86766d7468cf55a405c.tar.gz
redmine-5eccab9295524e02de81a86766d7468cf55a405c.zip
Improves filter rendering on narrow screens by replacing the layout tables with a flex layout.
(#39806). Patch by Jens Krämer (@jkraemer). git-svn-id: https://svn.redmine.org/redmine/trunk@22574 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/queries/_columns.html.erb')
-rw-r--r--app/views/queries/_columns.html.erb18
1 files changed, 8 insertions, 10 deletions
diff --git a/app/views/queries/_columns.html.erb b/app/views/queries/_columns.html.erb
index 18443de57..da3ae2acf 100644
--- a/app/views/queries/_columns.html.erb
+++ b/app/views/queries/_columns.html.erb
@@ -2,36 +2,34 @@
<% available_tag_id = "available_#{tag_id}" %>
<% selected_tag_id = "selected_#{tag_id}" %>
-<span class="query-columns">
- <span>
+<div class="query-columns">
<%= label_tag available_tag_id, l(:description_available_columns) %>
<%= select_tag 'available_columns',
options_for_select(query_available_inline_columns_options(query)),
:id => available_tag_id,
:multiple => true, :size => 10,
:ondblclick => "moveOptions(this.form.#{available_tag_id}, this.form.#{selected_tag_id});" %>
- </span>
- <span class="buttons">
+</div>
+<div class="buttons">
<input type="button" value="&#8594;" class="move-right"
onclick="moveOptions(this.form.<%= available_tag_id %>, this.form.<%= selected_tag_id %>);" />
<input type="button" value="&#8592;" class="move-left"
onclick="moveOptions(this.form.<%= selected_tag_id %>, this.form.<%= available_tag_id %>);" />
- </span>
- <span>
+</div>
+<div class="query-columns">
<%= label_tag selected_tag_id, l(:description_selected_columns) %>
<%= select_tag tag_name,
options_for_select(query_selected_inline_columns_options(query)),
:id => selected_tag_id,
:multiple => true, :size => 10,
:ondblclick => "moveOptions(this.form.#{selected_tag_id}, this.form.#{available_tag_id});" %>
- </span>
- <span class="buttons">
+</div>
+<div class="buttons">
<input type="button" value="&#8648;" onclick="moveOptionTop(this.form.<%= selected_tag_id %>);" />
<input type="button" value="&#8593;" onclick="moveOptionUp(this.form.<%= selected_tag_id %>);" />
<input type="button" value="&#8595;" onclick="moveOptionDown(this.form.<%= selected_tag_id %>);" />
<input type="button" value="&#8650;" onclick="moveOptionBottom(this.form.<%= selected_tag_id %>);" />
- </span>
-</span>
+</div>
<%= javascript_tag do %>
$(document).ready(function(){