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

Add spacing between title and icons for auth providers

Aaron Contreras69f9a9574e02
diff --git a/app/views/account/_auth_providers.html.erb b/app/views/account/_auth_providers.html.erb
index a828b896617..6e908b42404 100644
--- a/app/views/account/_auth_providers.html.erb
+++ b/app/views/account/_auth_providers.html.erb
@@ -26,7 +26,6 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
See COPYRIGHT and LICENSE files for more details.
++#%>
-
<%
# Remove this ugly hack when creating an authentication plugin.
#
@@ -44,9 +43,11 @@ wclass = local_assigns[:wide] ? 'wide' : ''
<% if auth_provider_html.strip != '' %>
<div class="login-auth-providers <%= pclass %> <%= wclass %>">
<% unless no_pwd %>
- <h3 class="login-auth-providers-title"><span>
+ <h3 class="login-auth-providers-title">
+ <span>
<%= local_assigns[:omniauth_title] || I18n.t('account.login_with_auth_provider')%>
- </span></h3>
+ </span>
+ </h3>
<% end %>
<div class="login-auth-provider-list">
<%= auth_provider_html %>
diff --git a/app/views/account/_register.html.erb b/app/views/account/_register.html.erb
index d3e7176812e..2e1abc0e5c3 100644
--- a/app/views/account/_register.html.erb
+++ b/app/views/account/_register.html.erb
@@ -26,13 +26,10 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
See COPYRIGHT and LICENSE files for more details.
++#%>
-
<div class="modal-delivery-element">
- <%= labelled_tabular_form_for(@user, url: account_register_path, html: { class: 'form -wide-labels spot-modal' }) do |f| %>
-
+ <%= labelled_tabular_form_for(@user, url: account_register_path, html: { class: 'form -wide-labels spot-modal', id: 'register-form' }) do |f| %>
<%= back_url_hidden_field_tag use_referer: false %>
<%= error_messages_for :user %>
-
<div id="spotModalTitle" class="spot-modal--header">
<%= I18n.t('onboarding.welcome', app_title: Setting.app_title) %>
</div>
@@ -52,23 +49,19 @@ See COPYRIGHT and LICENSE files for more details.
<div class="form--field -required -wide-label">
<%= f.text_field :firstname, required: true %>
</div>
-
<div class="form--field -required -wide-label">
<%= f.text_field :lastname, required: true %>
</div>
-
<% if registration_show_email? %>
<div class="form--field -required -wide-label">
<%= email_field(f) %>
</div>
<% end %>
-
<%= call_hook :view_account_register_after_basic_information, f: f %>
-
<%= render partial: "customizable/form",
locals: { form: f, all_fields: false, only_required: true, wide_labels: true } %>
-
- <br/><br/>
+ <br/>
+ <br/>
<% if @user.change_password_allowed? %>
<div class="form--field -required -wide-label -reduced-margin">
<%= f.password_field :password,
@@ -87,15 +80,12 @@ See COPYRIGHT and LICENSE files for more details.
</div>
<% end %>
</section>
-
<% if user_consent_required? %>
<hr/>
<%= render partial: 'account/user_consent_check' %>
<% end %>
-
<%= render partial: 'account/auth_providers', locals: { omniauth_title: I18n.t('account.signup_with_auth_provider'), wide: true } %>
</div>
-
<%= render partial: 'account/footer' %>
<% end %>
</div>
diff --git a/frontend/src/global_styles/content/_accounts.sass b/frontend/src/global_styles/content/_accounts.sass
index 29fb76b7bdd..a1578704326 100644
--- a/frontend/src/global_styles/content/_accounts.sass
+++ b/frontend/src/global_styles/content/_accounts.sass
@@ -119,3 +119,7 @@
&--agreement
font-size: inherit
+
+#register-form
+ .login-auth-provider-list
+ margin-top: 1em