Skip to content

Commit 76a7963

Browse files
Truncate username on User edit button
1 parent a08b1e9 commit 76a7963

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/views/shared/_header.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
<% if current_user %>
3030
<div class="lg-5-1">
3131
<%= link_to edit_user_registration_path, class: 'user-name truncate' do %>
32-
<%= fa_icon "user", text: current_user.name %>
32+
<%= fa_icon "user", text: current_user.name.truncate(10) %>
3333
<% end %>
3434
</div>
3535
<% end %>

0 commit comments

Comments
 (0)