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 sso icon position (#9960)

ulfertsac14e80220cd
diff --git a/frontend/src/global_styles/content/modules/_auth_plugins.sass b/frontend/src/global_styles/content/modules/_auth_plugins.sass
index c9a3cac0e97..d53415f8223 100644
--- a/frontend/src/global_styles/content/modules/_auth_plugins.sass
+++ b/frontend/src/global_styles/content/modules/_auth_plugins.sass
@@ -20,14 +20,17 @@
.op-app-header #nav-login-content,
#content,
.op-modal,
- .login-auth-providers a.auth-provider
- background-repeat: no-repeat
- background-size: 18px 18px
- background-position-x: 8px
- background-position-y: center
- background-color: #FFF
+.login-auth-providers a.auth-provider
+ background-repeat: no-repeat
+ background-size: 18px 18px
+ background-position-x: 8px
+ background-position-y: center
+ background-color: #FFF
- &.auth-provider-google,
- &.auth-provider-azure,
- &.auth-provider-heroku
- padding: 9px 12px 9px 34px
+ &.auth-provider--imaged
+ padding-left: 2rem
+
+ &.auth-provider-google,
+ &.auth-provider-azure,
+ &.auth-provider-heroku
+ padding: 9px 12px 9px 34px
diff --git a/modules/auth_plugins/app/views/hooks/login/_providers.html.erb b/modules/auth_plugins/app/views/hooks/login/_providers.html.erb
index 4d4857bcede..6084068a9a7 100644
--- a/modules/auth_plugins/app/views/hooks/login/_providers.html.erb
+++ b/modules/auth_plugins/app/views/hooks/login/_providers.html.erb
@@ -35,7 +35,9 @@ See COPYRIGHT and LICENSE files for more details.
opts[:origin] = params['back_url']
end
%>
- <a href="<%= omniauth_start_path(pro[:name], opts) %>" class="auth-provider auth-provider-<%= pro[:name] %> button">
+ <a
+ href="<%= omniauth_start_path(pro[:name], opts) %>"
+ class="auth-provider auth-provider-<%= pro[:name] %> <%= pro[:icon] ? 'auth-provider--imaged' : '' %> button">
<span class="auth-provider-name"><%= pro[:display_name] || pro[:name] %></span>
</a>
<% end %>