]> git.openstreetmap.org Git - rails.git/commitdiff
Use .icon-link for new diary entry icon
authorAnton Khorev <tony29@yandex.ru>
Sat, 27 Apr 2024 22:57:38 +0000 (01:57 +0300)
committerAnton Khorev <tony29@yandex.ru>
Sat, 27 Apr 2024 22:57:38 +0000 (01:57 +0300)
app/assets/stylesheets/common.scss
app/views/diary_entries/index.html.erb

index c0f6c367c85271d2dc615f0c761bd346de3fa24c..71649fbce4f6386c7952cd9fa4997c07056b7efd 100644 (file)
@@ -21,11 +21,6 @@ time[title] {
 
 #container { position: relative; }
 
-.small_icon {
-  vertical-align: middle;
-  margin-right: $lineheight * 0.25;
-}
-
 /* Rules for icons */
 
 .icon {
index 78ac0dcf869976bf05d4a020172e1e2c0202b90e..a0ab0264a4f7383e73d850779d6c5d0aea2aa136 100644 (file)
@@ -25,7 +25,7 @@
           <% end %>
 
           <% if @user && @user == current_user || !@user && current_user %>
-            <li><%= link_to image_tag("new.png", :class => "small_icon") + t(".new"), new_diary_entry_path, :title => t(".new_title") %></li>
+            <li><%= link_to image_tag("new.png") + t(".new"), new_diary_entry_path, :class => "icon-link", :title => t(".new_title") %></li>
           <% end %>
         </ul>
       </nav>