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

Increase line-height in global search

Benjamin Bädorf68a4749bfd9b
diff --git a/frontend/src/app/core/global_search/input/global-search-input.component.html b/frontend/src/app/core/global_search/input/global-search-input.component.html
index 222a31175e4..de4920f1bd7 100644
--- a/frontend/src/app/core/global_search/input/global-search-input.component.html
+++ b/frontend/src/app/core/global_search/input/global-search-input.component.html
@@ -18,6 +18,7 @@
class="global-search"
[placeholder]="text.search_dots"
[classes]="{'top-menu-search--input': true, '-markable': markable, '-expanded': expanded }"
+ [inputAttrs]="{ 'class': 'global-search--input' }"
[openOnEnter]="false"
[labelRequired]="false"
[focusDirectly]="isFocusedDirectly"
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 d6a3abd79c2..ef0e80fa23f 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
@@ -6,6 +6,10 @@
@media screen and (max-width: 679px)
display: none
+ &--input[type="text"]
+ // Uppercase letters with accents like Ü and  would get cut off
+ line-height: 20px
+
&--option,
&--option:hover
padding: 5px 5px
@@ -70,3 +74,4 @@
overflow: hidden
white-space: nowrap
text-overflow: ellipsis
+ line-height: 1.5