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

Fix min-height of autocompleter

Oliver Günther4caefe898d6b
diff --git a/frontend/src/global_styles/openproject/_primer-adjustments.sass b/frontend/src/global_styles/openproject/_primer-adjustments.sass
index a84b94e232e..057d9f0f404 100644
--- a/frontend/src/global_styles/openproject/_primer-adjustments.sass
+++ b/frontend/src/global_styles/openproject/_primer-adjustments.sass
@@ -59,3 +59,7 @@ ul.tabnav-tabs
.op-primer-adjustments__toggle-switch--hidden-loading-indicator
.ToggleSwitch-statusIcon
display: none
+
+.Overlay
+ &-body_autocomplete_height
+ min-height: 300px
diff --git a/modules/overviews/app/components/project_custom_fields/sections/edit_dialog_component.html.erb b/modules/overviews/app/components/project_custom_fields/sections/edit_dialog_component.html.erb
index a73b0457c9f..a492eff70b5 100644
--- a/modules/overviews/app/components/project_custom_fields/sections/edit_dialog_component.html.erb
+++ b/modules/overviews/app/components/project_custom_fields/sections/edit_dialog_component.html.erb
@@ -7,8 +7,7 @@
url: update_project_custom_values_path(project_id: @project.id, section_id: @project_custom_field_section.id),
) do |f|
component_collection do |collection|
- # TODO: remove inline style
- collection.with_component(Primer::Alpha::Dialog::Body.new(my: 3, style: "max-height: 500px;")) do
+ collection.with_component(Primer::Alpha::Dialog::Body.new(my: 3, classes: "Overlay-body_autocomplete_height")) do
render(Projects::CustomFields::Form.new(
f,
project: @project,