OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
Avoid long user names to overflow the sidebar or the dialog
Henriette Darge3c7f0297a3dc
diff --git a/frontend/src/global_styles/content/_principal.sass b/frontend/src/global_styles/content/_principal.sassindex a723b7321c2..46486d24af0 100644--- a/frontend/src/global_styles/content/_principal.sass+++ b/frontend/src/global_styles/content/_principal.sass@@ -4,7 +4,7 @@justify-content: centervertical-align: middle- &--flex+ &_flexdisplay: flex&--avatardiff --git a/modules/meeting/app/components/meeting_agenda_items/item_component/show_component.html.erb b/modules/meeting/app/components/meeting_agenda_items/item_component/show_component.html.erbindex 15b482ca355..d5e16322fa2 100644--- a/modules/meeting/app/components/meeting_agenda_items/item_component/show_component.html.erb+++ b/modules/meeting/app/components/meeting_agenda_items/item_component/show_component.html.erb@@ -47,7 +47,7 @@title = I18n.t(:label_added_time_by,author: @meeting_agenda_item.author.name,age: helpers.distance_of_time_in_words(Time.zone.now, @meeting_agenda_item.created_at))- render(Users::AvatarComponent.new(user: @meeting_agenda_item.author, size: 'mini', title:, classes: 'op-principal--flex'))+ render(Users::AvatarComponent.new(user: @meeting_agenda_item.author, size: 'mini', title:, classes: 'op-principal_flex'))endgrid.with_area(:actions, tag: :div, justify_self: :end) dodiff --git a/modules/meeting/app/components/meetings/sidebar/participants_component.rb b/modules/meeting/app/components/meetings/sidebar/participants_component.rbindex 3c13f4bfedb..8d654bfa75b 100644--- a/modules/meeting/app/components/meetings/sidebar/participants_component.rb+++ b/modules/meeting/app/components/meetings/sidebar/participants_component.rb@@ -157,10 +157,10 @@ module Meetingsdef participant_partial(participant)flex_layout(align_items: :center) do |flex|- flex.with_column(style: 'flex-shrink: 1; min-width: 0') do+ flex.with_column(classes: 'ellipsis') dorender(Users::AvatarComponent.new(user: participant.user,size: :medium,- classes: 'op-principal--flex'))+ classes: 'op-principal_flex'))endparticipant_state_partial(participant, flex)enddiff --git a/modules/meeting/app/components/meetings/sidebar/participants_form_component.rb b/modules/meeting/app/components/meetings/sidebar/participants_form_component.rbindex 5fb307c6adc..5d0e98e9086 100644--- a/modules/meeting/app/components/meetings/sidebar/participants_form_component.rb+++ b/modules/meeting/app/components/meetings/sidebar/participants_form_component.rb@@ -120,9 +120,10 @@ module Meetingsdef exisiting_participant_form_checkboxes_partial(participant)flex_layout(align_items: :center) do |flex|- flex.with_column(flex: 1) do+ flex.with_column(flex: 1, classes: 'ellipsis') dorender(Users::AvatarComponent.new(user: participant.user,+ classes: 'op-principal_flex'))endflex.with_column(style: "width: 90px;", text_align: :center) do@@ -170,9 +171,10 @@ module Meetingsdef new_participant_form_partial(user)flex_layout(align_items: :center) do |flex|- flex.with_column(flex: 1) do+ flex.with_column(flex: 1, classes: 'ellipsis') dorender(Users::AvatarComponent.new(user:,+ classes: 'op-principal_flex'))endflex.with_column(style: "width: 90px;", text_align: :center) do