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
Replace truncate with ellipsis on work package
Oliver Güntherfa68b5362498
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.erbindex 83aab85d908..145a53ebb90 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@@ -9,14 +9,10 @@grid.with_area(:content, tag: :span) doif @meeting_agenda_item.visible_work_package?flex_layout(align_items: :center) do |flex|- flex.with_column(mr: 2) do+ flex.with_column(mr: 2, flex: 1, classes: 'ellipsis') dorender(Primer::Beta::Link.new(href: work_package_path(@meeting_agenda_item.work_package), underline: false,font_size: :normal, font_weight: :bold, target: "_blank")) do- render(Primer::Beta::Truncate.new) do |component|- component.with_item(max_width: 300, expandable: true) do- @meeting_agenda_item.work_package.subject- end- end+ @meeting_agenda_item.work_package.subjectendendflex.with_column(mr: 2, classes: 'hidden-for-mobile') do@@ -42,7 +38,7 @@endif @meeting_agenda_item.duration_in_minutes.present? && @meeting_agenda_item.duration_in_minutes > 0- grid.with_area(:duration, Primer::Beta::Text, font_size: :small, color: :subtle, mr: 1) do+ grid.with_area(:duration, Primer::Beta::Text, font_size: :small, color: :subtle, mr: 1) doI18n.t('datetime.distance_in_words.x_min_abbreviated', count: @meeting_agenda_item.duration_in_minutes)endend