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

Shorten too long results on the global search

Henriette Dargec1a6d805b3e1
diff --git a/frontend/src/app/core/global_search/input/global-search.component.sass b/frontend/src/app/core/global_search/input/global-search.component.sass
index 9adcfe43f7b..d6a3abd79c2 100644
--- a/frontend/src/app/core/global_search/input/global-search.component.sass
+++ b/frontend/src/app/core/global_search/input/global-search.component.sass
@@ -1,3 +1,5 @@
+@import "src/assets/sass/helpers"
+
.global-search
flex-grow: 1
@@ -18,6 +20,7 @@
display: flex
flex-direction: column
flex-grow: 1
+ overflow: hidden
&--search-term
flex-grow: 1
@@ -46,6 +49,7 @@
&--wp-project
grid-area: project
+ @include text-shortener
&--wp-id
grid-area: idlink
@@ -63,7 +67,6 @@
&--wp-subject
font-weight: bold
display: inline-block
- width: 85%
overflow: hidden
white-space: nowrap
text-overflow: ellipsis