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[#47147] Fix wonky UI to match designs

Kabiru Mwenja05df82ae2065
diff --git a/frontend/src/global_styles/content/_forms.sass b/frontend/src/global_styles/content/_forms.sass
index 6a8a159ad21..dfdfc5d6b1b 100644
--- a/frontend/src/global_styles/content/_forms.sass
+++ b/frontend/src/global_styles/content/_forms.sass
@@ -828,6 +828,17 @@ input[readonly].-clickable
top: -1px
position: relative
+.form--label-with-radio-button
+ display: block
+ clear: both
+ line-height: $base-line-height
+ padding: 0 2rem 0 0
+
+ & > .form--radio-button-container
+ display: block
+ float: left
+ padding-right: 0.5rem
+
.form--field-affix
flex: 0 0 auto
display: flex
diff --git a/modules/storages/app/views/storages/project_settings/_form.html.erb b/modules/storages/app/views/storages/project_settings/_form.html.erb
index 0de69cadf31..28f37dda695 100644
--- a/modules/storages/app/views/storages/project_settings/_form.html.erb
+++ b/modules/storages/app/views/storages/project_settings/_form.html.erb
@@ -12,19 +12,24 @@
</div>
<div class="form--field -required">
- <%= f.radio_button :project_folder_mode,
- 'inactive',
- label: t(:"storages.label_no_specific_folder"),
- container_class: '-slim' %>
+ <label class="form--label -bold">Project folder</label>
+ <div class="form--field-container -horizontal">
+ <%= f.label :project_folder_mode, class: "form--label-with-radio-button" do %>
+ <%= f.radio_button :project_folder_mode, 'inactive', no_label: true %>
+ <%= t(:"storages.label_no_specific_folder") %>
+ <% end %>
+ </div>
<p class="form--field-instructions">
<%= t(:"storages.instructions.no_specific_folder") %>
</p>
- <%= f.radio_button :project_folder_mode,
- 'manual',
- label: t(:"storages.label_existing_manual_folder"),
- container_class: '-slim' %>
- <p class="form--field-instructions">
+ <div class="form--field-container -horizontal">
+ <%= f.label :project_folder_mode, class: "form--label-with-radio-button" do %>
+ <%= f.radio_button :project_folder_mode, 'manual', no_label: true %>
+ <%= t(:"storages.label_existing_manual_folder") %>
+ <% end %>
+ </div>
+ <p class="form--field-instructions -xwide">
<%= t(:"storages.instructions.existing_manual_folder") %>
</p>
</div>