diff --git a/app/components/work_packages/activities_tab/journals/item_component/details.rb b/app/components/work_packages/activities_tab/journals/item_component/details.rb index ebbe8cc3335a..2810a2d82c8b 100644 --- a/app/components/work_packages/activities_tab/journals/item_component/details.rb +++ b/app/components/work_packages/activities_tab/journals/item_component/details.rb @@ -93,18 +93,23 @@ def render_user_avatar(container) end def render_user_name_for_desktop(container) - container.with_column(mr: 1, - classes: "work-packages-activities-tab-journals-item-component-details--user-name ellipsis hidden-for-mobile") do + container.with_column( + mr: 1, + classes: "work-packages-activities-tab-journals-item-component-details--user-name ellipsis hidden-for-mobile" + ) do truncated_user_name(journal.user) end end def render_user_name_and_time_for_mobile(container) container.with_column( - mr: 1, classes: "work-packages-activities-tab-journals-item-component-details--user-name-container hidden-for-desktop", + mr: 1, + classes: "work-packages-activities-tab-journals-item-component-details--user-name-container hidden-for-desktop", flex_layout: true ) do |user_name_and_time_container| - user_name_and_time_container.with_row(classes: "work-packages-activities-tab-journals-item-component-details--user-name ellipsis") do + user_name_and_time_container.with_row( + classes: "work-packages-activities-tab-journals-item-component-details--user-name ellipsis" + ) do truncated_user_name(journal.user) end user_name_and_time_container.with_row do