diff --git a/app/assets/javascripts/app/controllers/users.js.coffee b/app/assets/javascripts/app/controllers/users.js.coffee
index 5c7e035e2..da5214660 100644
--- a/app/assets/javascripts/app/controllers/users.js.coffee
+++ b/app/assets/javascripts/app/controllers/users.js.coffee
@@ -54,6 +54,7 @@ class Index extends App.Controller
attribute =
name: 'switch_to'
display: 'Action'
+ className: 'actionCell'
translation: true
header.push attribute
header
@@ -61,9 +62,9 @@ class Index extends App.Controller
callbackAttributes = (value, object, attribute, header, refObject) ->
text = App.i18n.translateInline("View from user's perspective")
value = ' '
- attribute.raw = ' ' + text + ''
+ attribute.raw = ' ' + text + ''
attribute.class = ''
- attribute.parentClass = 'no-padding'
+ attribute.parentClass = 'actionCell no-padding'
attribute.link = ''
attribute.title = App.i18n.translateInline('Switch to')
value
diff --git a/app/assets/javascripts/app/views/generic/table.jst.eco b/app/assets/javascripts/app/views/generic/table.jst.eco
index 55fe7337e..cb04602a4 100644
--- a/app/assets/javascripts/app/views/generic/table.jst.eco
+++ b/app/assets/javascripts/app/views/generic/table.jst.eco
@@ -14,7 +14,7 @@
|
<% end %>
<% for item in @header: %>
- style="<%= item.style %>"<% end %>><%- @T( item.display ) %> |
+ class="<%= item.className %>"<% end %><% if item.style: %> style="<%= item.style %>"<% end %>><%- @T( item.display ) %> |
<% end %>
<% if @destroy: %>
<%- @T('Delete') %> |
diff --git a/app/assets/javascripts/app/views/layout_ref/user_list.jst.eco b/app/assets/javascripts/app/views/layout_ref/user_list.jst.eco
index 0d0a91027..228abdc58 100644
--- a/app/assets/javascripts/app/views/layout_ref/user_list.jst.eco
+++ b/app/assets/javascripts/app/views/layout_ref/user_list.jst.eco
@@ -150,7 +150,7 @@
Lastname |
- Aktionen |
+ Aktionen |
@@ -162,7 +162,7 @@
Niklas |
-
+ |
Aus Benutzeransicht anzeigen
|
@@ -174,7 +174,7 @@
Hubermeyerschmidt |
-
+ |
Aus Benutzeransicht anzeigen
|
@@ -186,7 +186,7 @@
Braun |
-
+ |
Aus Benutzeransicht anzeigen
|
@@ -198,7 +198,7 @@
Blanko |
-
+ |
Aus Benutzeransicht anzeigen
|
diff --git a/app/assets/stylesheets/zammad.css.scss b/app/assets/stylesheets/zammad.css.scss
index 068a6e0db..da5c895aa 100644
--- a/app/assets/stylesheets/zammad.css.scss
+++ b/app/assets/stylesheets/zammad.css.scss
@@ -4088,8 +4088,7 @@ footer {
display: block;
}
-.user-list {
- table-layout: auto;
+.table.user-list {
tr:hover .switchView {
visibility: visible;
@@ -4097,6 +4096,15 @@ footer {
.switchView {
visibility: hidden;
+ display: block;
+ text-overflow: ellipsis;
+ overflow: hidden;
+ }
+
+ // lame hardcoded width of this "View from users' perspective" button td
+ // i can't find another way to do it. It's not flexible. It sucks
+ .actionCell {
+ width: 250px;
}
}