Truncate if necessary and set dir=auto for note usernames

This commit is contained in:
Anton Khorev 2024-12-04 13:53:20 +03:00
parent 572d1adaae
commit 16e97c57ca
3 changed files with 43 additions and 18 deletions

View file

@ -18,7 +18,8 @@ module NoteHelper
elsif author.status == "deleted"
t("users.no_such_user.deleted")
else
link_to h(author.display_name), link_options.merge(:controller => "/users", :action => "show", :display_name => author.display_name)
link_to h(author.display_name), link_options.merge(:controller => "/users", :action => "show", :display_name => author.display_name),
:class => "mw-100 d-inline-block align-bottom text-truncate text-wrap", :dir => "auto"
end
end
end