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
make both life cycle project settings and definitions list behave when name is too long
Ivan Kuchind1c7c8773540
diff --git a/app/components/projects/settings/life_cycle_steps/step_component.html.erb b/app/components/projects/settings/life_cycle_steps/step_component.html.erbindex 9eda07459e3..6da353ef3d7 100644--- a/app/components/projects/settings/life_cycle_steps/step_component.html.erb+++ b/app/components/projects/settings/life_cycle_steps/step_component.html.erb@@ -1,11 +1,11 @@<%=flex_layout(align_items: :center,justify_content: :space_between) do |step_container|- step_container.with_column(flex_layout: true) do |title_container|- title_container.with_column(pt: 1, mr: 3) do+ step_container.with_column(flex_layout: true, mr: 2, classes: "min-width-0") do |title_container|+ title_container.with_column(pt: 1, mr: 3, classes: "ellipsis") dorender(Primer::Beta::Text.new(classes: 'filter-target-visible-text')) { definition.name }end- title_container.with_column(pt: 1) do+ title_container.with_column(pt: 1, classes: "no-wrap") dorender(Projects::LifeCycleTypeComponent.new(definition))endenddiff --git a/app/components/settings/project_life_cycle_step_definitions/row_component.html.erb b/app/components/settings/project_life_cycle_step_definitions/row_component.html.erbindex 079296d46b3..6d262b91ac4 100644--- a/app/components/settings/project_life_cycle_step_definitions/row_component.html.erb+++ b/app/components/settings/project_life_cycle_step_definitions/row_component.html.erb@@ -29,7 +29,7 @@ See COPYRIGHT and LICENSE files for more details.<%=flex_layout(align_items: :center, justify_content: :space_between) do |row_container|- row_container.with_column(flex_layout: true, classes: "gap-2") do |title_container|+ row_container.with_column(flex_layout: true, classes: "gap-2 min-width-0") do |title_container|if allowed_to_customize_life_cycle?title_container.with_column dorender(Primer::OpenProject::DragHandle.new(@@ -37,7 +37,7 @@ See COPYRIGHT and LICENSE files for more details.))endend- title_container.with_column do+ title_container.with_column(classes: "ellipsis") dorender(if allowed_to_customize_life_cycle?Primer::Beta::Link.new(@@ -57,7 +57,7 @@ See COPYRIGHT and LICENSE files for more details.title_container.with_column dorender(Projects::LifeCycleTypeComponent.new(definition))end- title_container.with_column do+ title_container.with_column(classes: "no-wrap") dorender(Primer::Beta::Text.new) { t("project.count", count: definition.project_count) }endend