Truncate if necessary and set dir=auto for changeset usernames

This commit is contained in:
Anton Khorev 2024-12-03 10:24:56 +03:00
parent bc70cae711
commit c739e061cc
2 changed files with 23 additions and 7 deletions

View file

@ -3,7 +3,7 @@ module ChangesetsHelper
if changeset.user.status == "deleted"
t("users.no_such_user.deleted")
elsif changeset.user.data_public?
link_to changeset.user.display_name, changeset.user
link_to changeset.user.display_name, changeset.user, :class => "mw-100 d-inline-block align-bottom text-truncate text-wrap", :dir => "auto"
else
t("browse.anonymous")
end