From: Anton Khorev Date: Tue, 9 Jul 2024 14:21:34 +0000 (+0300) Subject: Remove .d-block classes from auth buttons X-Git-Tag: live~376^2 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/088a78d83c26333fa08eee8c4bb4620a5e7ff1af?ds=inline;hp=--cc Remove .d-block classes from auth buttons Unnecessary on flex items. --- 088a78d83c26333fa08eee8c4bb4620a5e7ff1af diff --git a/app/helpers/user_helper.rb b/app/helpers/user_helper.rb index 3e779a00c..26ba2c528 100644 --- a/app/helpers/user_helper.rb +++ b/app/helpers/user_helper.rb @@ -64,7 +64,7 @@ module UserHelper :size => "36"), auth_path(options.merge(:provider => provider)), :method => :post, - :class => "auth_button btn btn-light p-2 d-block", + :class => "auth_button btn btn-light p-2", :title => t("application.auth_providers.#{name}.title") ) end diff --git a/app/views/application/_auth_providers.html.erb b/app/views/application/_auth_providers.html.erb index 564732d36..d2ff6865f 100644 --- a/app/views/application/_auth_providers.html.erb +++ b/app/views/application/_auth_providers.html.erb @@ -31,7 +31,7 @@ "#", :id => "openid_open_url", :title => t("application.auth_providers.openid.title"), - :class => "btn btn-light p-2 d-block" %> + :class => "btn btn-light p-2" %> <% %w[google facebook microsoft github wikipedia].each do |provider| %> <% unless @preferred_auth_provider == provider %> diff --git a/test/helpers/user_helper_test.rb b/test/helpers/user_helper_test.rb index a415bd029..eaf406a06 100644 --- a/test/helpers/user_helper_test.rb +++ b/test/helpers/user_helper_test.rb @@ -117,7 +117,7 @@ class UserHelperTest < ActionView::TestCase def test_auth_button button = auth_button("google", "google") img_tag = "\"Google" - assert_equal("#{img_tag}", button) + assert_equal("#{img_tag}", button) end private