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

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.erb
index 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") do
render(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") do
render(Projects::LifeCycleTypeComponent.new(definition))
end
end
diff --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.erb
index 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 do
render(Primer::OpenProject::DragHandle.new(
@@ -37,7 +37,7 @@ See COPYRIGHT and LICENSE files for more details.
))
end
end
- title_container.with_column do
+ title_container.with_column(classes: "ellipsis") do
render(
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 do
render(Projects::LifeCycleTypeComponent.new(definition))
end
- title_container.with_column do
+ title_container.with_column(classes: "no-wrap") do
render(Primer::Beta::Text.new) { t("project.count", count: definition.project_count) }
end
end