]> git.openstreetmap.org Git - rails.git/commitdiff
Remove custom css for OpenID logo
authorAnton Khorev <tony29@yandex.ru>
Thu, 10 Aug 2023 16:27:48 +0000 (19:27 +0300)
committerAnton Khorev <tony29@yandex.ru>
Thu, 10 Aug 2023 16:43:54 +0000 (19:43 +0300)
app/assets/stylesheets/common.scss
app/helpers/user_helper.rb
test/helpers/user_helper_test.rb

index 779fbbe35d0fbe705c308258ce30b104dabe1cb4..8cd9e2b402003df873b92fb38f8519c97d93e4b0 100644 (file)
@@ -1262,13 +1262,6 @@ dl.dl-inline {
   }
 }
 
-/* Rules for OpenID logo */
-
-.openid_logo {
-  vertical-align: text-bottom;
-  border: 0;
-}
-
 /* Rules for rich text */
 
 .richtext,
index 1064e95c7dd7b4bed74a6075b002be28223451aa..c8a80588ca6a830ddb9b1b9c48c6cfc4b02461f0 100644 (file)
@@ -53,7 +53,7 @@ module UserHelper
   # External authentication support
 
   def openid_logo
-    image_tag "openid_small.png", :alt => t("sessions.new.openid_logo_alt"), :class => "openid_logo"
+    image_tag "openid_small.png", :alt => t("sessions.new.openid_logo_alt"), :class => "align-text-bottom"
   end
 
   def auth_button(name, provider, options = {})
index cb7125cca157cc3ed96e9f7e0dfaeab78690c60a..044f71681f2ec9ef2432bcc98c25dd00ecb3acfc 100644 (file)
@@ -111,7 +111,7 @@ class UserHelperTest < ActionView::TestCase
 
   def test_openid_logo
     logo = openid_logo
-    assert_match %r{^<img .* class="openid_logo" src="/images/openid_small.png" />$}, logo
+    assert_match %r{^<img .* src="/images/openid_small.png" />$}, logo
   end
 
   def test_auth_button