Truncate long usernames in blocks tables

This commit is contained in:
Anton Khorev 2024-08-16 14:41:02 +03:00
parent a0013c8f56
commit a9b84ff4c6
2 changed files with 8 additions and 2 deletions

View file

@ -904,6 +904,12 @@ div.secondary-actions {
}
}
/* Rules for block pages */
#block_list .username {
max-width: 20em;
}
/* Rules for tabs inside secondary background sections */
.bg-body-secondary .nav-tabs {

View file

@ -1,9 +1,9 @@
<tr>
<% if show_user_name %>
<td><%= link_to block.user.display_name, block.user %></td>
<td><%= link_to block.user.display_name, block.user, :class => "username d-inline-block text-truncate text-wrap" %></td>
<% end %>
<% if show_creator_name %>
<td><%= link_to block.creator.display_name, block.creator %></td>
<td><%= link_to block.creator.display_name, block.creator, :class => "username d-inline-block text-truncate text-wrap" %></td>
<% end %>
<td><%= h truncate(block.reason) %></td>
<td><%= h block_status(block) %></td>