Commit f067ea1b authored by Olena Horal-Koretska's avatar Olena Horal-Koretska

Merge branch '327425-omniauth-labels-overflow-off-button' into 'master'

Fix overflowing text in OmniAuth login buttons

See merge request gitlab-org/gitlab!68884
parents 0edfba36 8524712d
......@@ -96,15 +96,10 @@
}
form {
width: 48%;
padding: 0;
border: 0;
background: none;
margin-bottom: $gl-padding;
@include media-breakpoint-down(md) {
width: 100%;
}
}
.omniauth-btn {
......
......@@ -634,17 +634,11 @@ svg {
margin: 0;
}
.login-page .omniauth-container form {
width: 48%;
padding: 0;
border: 0;
background: none;
margin-bottom: 16px;
}
@media (max-width: 991.98px) {
.login-page .omniauth-container form {
width: 100%;
}
}
.login-page .omniauth-container .omniauth-btn {
width: 100%;
}
......
......@@ -7,10 +7,10 @@
.d-flex.justify-content-between.flex-wrap
- providers.each do |provider|
- has_icon = provider_has_icon?(provider)
= button_to omniauth_authorize_path(:user, provider), id: "oauth-login-#{provider}", class: "btn gl-button btn-default omniauth-btn oauth-login #{qa_class_for_provider(provider)}" do
= button_to omniauth_authorize_path(:user, provider), id: "oauth-login-#{provider}", class: "btn gl-button btn-default omniauth-btn oauth-login #{qa_class_for_provider(provider)}", form: { class: 'gl-w-full' } do
- if has_icon
= provider_image_tag(provider)
%span
%span.gl-button-text
= label_for_provider(provider)
- unless hide_remember_me
%fieldset.remember-me
......
......@@ -634,17 +634,11 @@ svg {
margin: 0;
}
.login-page .omniauth-container form {
width: 48%;
padding: 0;
border: 0;
background: none;
margin-bottom: 16px;
}
@media (max-width: 991.98px) {
.login-page .omniauth-container form {
width: 100%;
}
}
.login-page .omniauth-container .omniauth-btn {
width: 100%;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment