From: Anton Khorev Date: Sat, 27 Apr 2024 23:07:53 +0000 (+0300) Subject: Use .align-text-bottom for feed icon images X-Git-Tag: live~113^2 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/acac5fcc890dfa3b7317febf4222df4450def62b Use .align-text-bottom for feed icon images --- diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index e81a9d401..fcf253289 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -10,11 +10,11 @@ module ApplicationHelper end def rss_link_to(args = {}) - link_to(image_tag("RSS.png", :size => "16x16"), args, :class => "rsssmall") + link_to image_tag("RSS.png", :size => "16x16", :class => "align-text-bottom"), args end def atom_link_to(args = {}) - link_to(image_tag("RSS.png", :size => "16x16"), args, :class => "rsssmall") + link_to image_tag("RSS.png", :size => "16x16", :class => "align-text-bottom"), args end def dir diff --git a/test/helpers/application_helper_test.rb b/test/helpers/application_helper_test.rb index f6b335a5c..24d74c85f 100644 --- a/test/helpers/application_helper_test.rb +++ b/test/helpers/application_helper_test.rb @@ -31,12 +31,12 @@ class ApplicationHelperTest < ActionView::TestCase def test_rss_link_to link = rss_link_to(:controller => :diary_entries, :action => :rss) - assert_dom_equal "", link + assert_dom_equal "", link end def test_atom_link_to link = atom_link_to(:controller => :changesets, :action => :feed) - assert_dom_equal "", link + assert_dom_equal "", link end def test_dir