Skip to content

Commit

Permalink
Truncate clipboard item name
Browse files Browse the repository at this point in the history
  • Loading branch information
tvdeyen committed Nov 5, 2018
1 parent 2088631 commit f7b7a66
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/views/alchemy/admin/clipboard/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@
<li id="clipboard_item_<%= item.id -%>" class="<%= item_class -%>">
<% if item_class == 'pages' %>
<%= render_icon(:file, style: 'regular') %>
<%= item.name %>
<%= truncate(item.name, length: 50) %>
<% else %>
<% if item.public? %>
<%= render_icon('window-maximize', style: 'regular', class: 'element') %>
<% else %>
<%= render_icon('window-close', class: 'element') %>
<% end %>
<%= item.display_name_with_preview_text(60) %>
<%= truncate(item.display_name_with_preview_text(50), length: 50) %>
<% end %>
<span class="float_right">
<%= link_to render_icon(:times, size: 'xs'),
Expand Down

0 comments on commit f7b7a66

Please sign in to comment.