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

Ellipse project names in project-list component

Benjamin Bädorfe2980ac8bc64
diff --git a/frontend/src/app/shared/components/project-include/project-list.component.html b/frontend/src/app/shared/components/project-include/project-list.component.html
index c4d68e240bb..5d5a2f3db65 100644
--- a/frontend/src/app/shared/components/project-include/project-list.component.html
+++ b/frontend/src/app/shared/components/project-include/project-list.component.html
@@ -7,6 +7,7 @@
[ngClass]="{ 'spot-list--item-action_disabled': isDisabled(project) }"
>
<spot-tooltip
+ class="op-project-list--tooltip"
[alignment]="getAlignment(project, isFirst, isLast)"
[disabled]="!isDisabled(project)"
[dark]="true"
@@ -21,7 +22,7 @@
[attr.data-qa-project-include-checked]="(checked || (includeSubprojects && parentChecked)) ? 1 : 0"
></spot-checkbox>
<div
- class="spot-list--item-title"
+ class="spot-list--item-title op-project-list--item-title"
[opSearchHighlight]="searchText"
>{{ project.name }}</div>
</ng-container>
diff --git a/frontend/src/app/shared/components/project-include/project-list.component.sass b/frontend/src/app/shared/components/project-include/project-list.component.sass
index ea54f81d9d4..1a53bed43e1 100644
--- a/frontend/src/app/shared/components/project-include/project-list.component.sass
+++ b/frontend/src/app/shared/components/project-include/project-list.component.sass
@@ -14,3 +14,10 @@
width: auto
height: auto
+ &--tooltip
+ max-width: 100%
+
+ &--item-title
+ text-overflow: ellipsis
+ white-space: nowrap
+ overflow: hidden