From 1c6a32c8ce2a466ed7553268eb70511338e2b7dc Mon Sep 17 00:00:00 2001 From: Felix Niklas Date: Thu, 22 Oct 2015 13:52:52 +0200 Subject: [PATCH] prevent table sortIcon shrinkage --- app/assets/javascripts/app/views/generic/table.jst.eco | 6 +++++- app/assets/stylesheets/zammad.scss | 7 ++++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/app/assets/javascripts/app/views/generic/table.jst.eco b/app/assets/javascripts/app/views/generic/table.jst.eco index 7460ec68a..af5a8a533 100644 --- a/app/assets/javascripts/app/views/generic/table.jst.eco +++ b/app/assets/javascripts/app/views/generic/table.jst.eco @@ -15,11 +15,15 @@ <% end %> <% for item, i in @header: %> <%= " style='#{ item.style }'" if item.style %> data-column-key="<%= item.name %>"> -
+
+
<%- @T( item.display ) %> +
+
<% if item.sortOrderIcon: %> <%- @Icon(item.sortOrderIcon[0], item.sortOrderIcon[1]) %> <% end %> +
<% if i < @header.length - 1: %>
diff --git a/app/assets/stylesheets/zammad.scss b/app/assets/stylesheets/zammad.scss index 5d7a17f52..b516398e9 100644 --- a/app/assets/stylesheets/zammad.scss +++ b/app/assets/stylesheets/zammad.scss @@ -699,8 +699,13 @@ table { box-sizing: content-box; } -.table-column-title { +.table-column-head { cursor: pointer; + display: flex; +} + +.table-column-sortIcon { + margin-left: auto; } .table > tbody > tr > td {