From: Anton Khorev Date: Sat, 27 Apr 2024 22:57:38 +0000 (+0300) Subject: Use .icon-link for new diary entry icon X-Git-Tag: live~104^2~2 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/528c2fb4da42518f171edbb2076e33896b556319 Use .icon-link for new diary entry icon --- diff --git a/app/assets/stylesheets/common.scss b/app/assets/stylesheets/common.scss index c0f6c367c..71649fbce 100644 --- a/app/assets/stylesheets/common.scss +++ b/app/assets/stylesheets/common.scss @@ -21,11 +21,6 @@ time[title] { #container { position: relative; } -.small_icon { - vertical-align: middle; - margin-right: $lineheight * 0.25; -} - /* Rules for icons */ .icon { diff --git a/app/views/diary_entries/index.html.erb b/app/views/diary_entries/index.html.erb index 78ac0dcf8..a0ab0264a 100644 --- a/app/views/diary_entries/index.html.erb +++ b/app/views/diary_entries/index.html.erb @@ -25,7 +25,7 @@ <% end %> <% if @user && @user == current_user || !@user && current_user %> -
  • <%= link_to image_tag("new.png", :class => "small_icon") + t(".new"), new_diary_entry_path, :title => t(".new_title") %>
  • +
  • <%= link_to image_tag("new.png") + t(".new"), new_diary_entry_path, :class => "icon-link", :title => t(".new_title") %>
  • <% end %>