Skip to content

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

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.sass
index 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: center
vertical-align: middle
- &--flex
+ &_flex
display: flex
&--avatar
diff --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.erb
index 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'))
end
grid.with_area(:actions, tag: :div, justify_self: :end) do
diff --git a/modules/meeting/app/components/meetings/sidebar/participants_component.rb b/modules/meeting/app/components/meetings/sidebar/participants_component.rb
index 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 Meetings
def 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') do
render(Users::AvatarComponent.new(user: participant.user,
size: :medium,
- classes: 'op-principal--flex'))
+ classes: 'op-principal_flex'))
end
participant_state_partial(participant, flex)
end
diff --git a/modules/meeting/app/components/meetings/sidebar/participants_form_component.rb b/modules/meeting/app/components/meetings/sidebar/participants_form_component.rb
index 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 Meetings
def 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') do
render(Users::AvatarComponent.new(
user: participant.user,
+ classes: 'op-principal_flex'
))
end
flex.with_column(style: "width: 90px;", text_align: :center) do
@@ -170,9 +171,10 @@ module Meetings
def 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') do
render(Users::AvatarComponent.new(
user:,
+ classes: 'op-principal_flex'
))
end
flex.with_column(style: "width: 90px;", text_align: :center) do