Truncate if necessary and set dir=auto for note usernames
This commit is contained in:
parent
572d1adaae
commit
16e97c57ca
3 changed files with 43 additions and 18 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue