]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/application/_auth_providers.html.erb
Remove .list-inline classes from auth providers template
[rails.git] / app / views / application / _auth_providers.html.erb
index 12f8c4d7dbddb6903584904368426f2375b870ea..403a4cfaee538f47821989394ff7574f5bedf8b0 100644 (file)
@@ -1,5 +1,5 @@
 <div>
-  <div class="list-inline justify-content-center d-flex align-items-center flex-wrap w-100 mb-3" id="login_auth_buttons">
+  <div class="justify-content-center d-flex align-items-center flex-wrap w-100 mb-3" id="login_auth_buttons">
 
     <% prefered_auth_button_available = false %>
     <% %w[google facebook microsoft github wikipedia].each do |provider| %>
@@ -11,7 +11,7 @@
     <% end -%>
 
     <% if prefered_auth_button_available %>
-      <div class="list-inline justify-content-center d-flex align-items-center flex-wrap w-50">
+      <div class="justify-content-center d-flex align-items-center flex-wrap w-50">
         <% %w[google facebook microsoft github wikipedia].each do |provider| %>
           <% if Settings.key?("#{provider}_auth_id".to_sym) -%>
             <% if @preferred_auth_provider == provider %>
           <% end -%>
         <% end -%>
       </div>
-      <div class="list-inline justify-content-center d-flex align-items-center flex-wrap w-50">
+      <div class="justify-content-center d-flex align-items-center flex-wrap gap-2 w-50 px-1">
     <% else %>
-      <div class="list-inline justify-content-center d-flex align-items-center flex-wrap w-100">
+      <div class="justify-content-center d-flex align-items-center flex-wrap gap-2 w-100">
     <% end %>
 
-      <%= link_to image_tag("openid.png",
-                            :alt => t("application.auth_providers.openid.title"),
+      <%= link_to image_tag("openid.svg",
+                            :alt => t("application.auth_providers.openid.alt"),
                             :size => "36"),
                   "#",
                   :id => "openid_open_url",
                   :title => t("application.auth_providers.openid.title"),
-                  :class => "p-2 d-block" %>
+                  :class => "btn btn-light p-2 d-block" %>
 
       <% %w[google facebook microsoft github wikipedia].each do |provider| %>
         <% unless @preferred_auth_provider == provider %>