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

[#55801] Change layout to avoid checkbox positioning problems

Judith Roth9670967eede3
diff --git a/app/components/settings/project_custom_fields/project_custom_field_mapping/new_project_mapping_form_component.html.erb b/app/components/settings/project_custom_fields/project_custom_field_mapping/new_project_mapping_form_component.html.erb
index 16bc25ac5e4..0e558be3e78 100644
--- a/app/components/settings/project_custom_fields/project_custom_field_mapping/new_project_mapping_form_component.html.erb
+++ b/app/components/settings/project_custom_fields/project_custom_field_mapping/new_project_mapping_form_component.html.erb
@@ -38,7 +38,7 @@ See COPYRIGHT and LICENSE files for more details.
) do |form|
concat(render(Primer::Alpha::Dialog::Body.new(
id: DIALOG_BODY_ID, test_selector: DIALOG_BODY_ID, aria: { label: title },
- classes: "FormControl-horizontalGroup--sm-vertical FormControl-horizontalGroup--center-aligned",
+ classes: "FormControl-horizontalGroup--sm-vertical",
style: "min-height: 300px"
)) do
render(Projects::CustomFields::CustomFieldMappingForm.new(form, project_mapping: @project_mapping))
diff --git a/app/forms/projects/custom_fields/custom_field_mapping_form.rb b/app/forms/projects/custom_fields/custom_field_mapping_form.rb
index 237fa6bdb7e..3db99fc5b2d 100644
--- a/app/forms/projects/custom_fields/custom_field_mapping_form.rb
+++ b/app/forms/projects/custom_fields/custom_field_mapping_form.rb
@@ -31,7 +31,7 @@ module Projects::CustomFields
include OpPrimer::ComponentHelpers
form do |form|
- form.group(layout: :horizontal) do |group|
+ form.group(layout: :vertical) do |group|
group.project_autocompleter(
name: :id,
label: Project.model_name.human,
diff --git a/frontend/src/global_styles/primer/_overrides.sass b/frontend/src/global_styles/primer/_overrides.sass
index 9c22086bd42..7575a2f4eb2 100644
--- a/frontend/src/global_styles/primer/_overrides.sass
+++ b/frontend/src/global_styles/primer/_overrides.sass
@@ -67,16 +67,9 @@ page-header
// For some specific cases like progress form in small screens,
// we need to change the direction of elements to column,
-// therefore elements are placed below each other.
-//
-// body needed for higher specificity compared to .FormControl-horizontalGroup--center-aligned
-body .FormControl-horizontalGroup--sm-vertical
+// therefore elements are placed below each other
+.FormControl-horizontalGroup--sm-vertical
@media screen and (max-width: $breakpoint-sm)
.FormControl-horizontalGroup
flex-direction: column
row-gap: 1rem
- align-items: normal
-
-.FormControl-horizontalGroup--center-aligned
- .FormControl-horizontalGroup
- align-items: center