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

WIP[Op#54749]: Fixed project attribute mapping dropdown

Andreas Pfohl756a8fd5a3e2
diff --git a/app/components/settings/project_custom_fields/project_custom_field_mapping/new_project_mapping_component.html.erb b/app/components/settings/project_custom_fields/project_custom_field_mapping/new_project_mapping_component.html.erb
index 6e885f207af..8f23dccadd7 100644
--- a/app/components/settings/project_custom_fields/project_custom_field_mapping/new_project_mapping_component.html.erb
+++ b/app/components/settings/project_custom_fields/project_custom_field_mapping/new_project_mapping_component.html.erb
@@ -43,7 +43,8 @@
id: dialog_id,
title:,
test_selector: dialog_id,
- size: :large
+ size: :large,
+ style: "min-height: 400px"
)
) do |dialog|
dialog.with_show_button(scheme: :primary) { show_button_text }
@@ -53,24 +54,22 @@
visually_hide_title: false
)
- render(Primer::Beta::Text.new(tag: :div)) do
+ concat(render(Primer::Alpha::Dialog::Body.new(
+ id: dialog_body_id, test_selector: dialog_body_id, aria: { label: title }
+ )) do
primer_form_with(
model: @project_mapping,
url: link_admin_settings_project_custom_field_path(@project_custom_field),
data: { turbo: true },
method: :post
) do |form|
- concat(render(Primer::Alpha::Dialog::Body.new(
- id: dialog_body_id, test_selector: dialog_body_id, aria: { label: title }
- )) do
- render(new_project_mapping_form.new(form, project_custom_field: @project_custom_field))
- end)
-
- concat(render(Primer::Alpha::Dialog::Footer.new(show_divider: false)) do
- concat(render(Primer::ButtonComponent.new(data: { 'close-dialog-id': dialog_id })) { cancel_button_text })
- concat(render(Primer::ButtonComponent.new(scheme: :primary, type: :submit)) { submit_button_text })
- end)
+ render(new_project_mapping_form.new(form, project_custom_field: @project_custom_field))
end
- end
+ end)
+
+ concat(render(Primer::Alpha::Dialog::Footer.new(show_divider: false)) do
+ concat(render(Primer::ButtonComponent.new(data: { 'close-dialog-id': dialog_id })) { cancel_button_text })
+ concat(render(Primer::ButtonComponent.new(scheme: :primary, type: :submit)) { submit_button_text })
+ end)
end
%>