]> git.openstreetmap.org Git - rails.git/commitdiff
Set trace thumbnail link display property to inline-block, fixing focus outline
authorAnton Khorev <tony29@yandex.ru>
Tue, 30 Apr 2024 14:14:07 +0000 (17:14 +0300)
committerAnton Khorev <tony29@yandex.ru>
Tue, 30 Apr 2024 14:14:07 +0000 (17:14 +0300)
This makes <a> as tall as <img> inside it.

app/views/traces/_trace.html.erb

index 72794355bc447185d4d9243c714d6f8a49112e13..cd4dce99e1c2eca1592f1213027ec22a1f3c7fa6 100644 (file)
@@ -2,7 +2,9 @@
   <td>
     <% if Settings.status != "gpx_offline" %>
       <% if trace.inserted %>
-        <%= link_to image_tag(trace_icon_path(trace.user, trace), :alt => "", :class => "trace_image"), show_trace_path(trace.user, trace) %>
+        <%= link_to image_tag(trace_icon_path(trace.user, trace), :alt => "", :class => "trace_image"),
+                    show_trace_path(trace.user, trace),
+                    :class => "d-inline-block" %>
       <% else %>
         <span class="text-danger"><%= t ".pending" %></span>
       <% end %>