[openstreetmap/openstreetmap-website] Define fixed size for trace images (PR #5030)

mmd notifications at github.com
Tue Jul 30 15:54:36 UTC 2024


@mmd-osm commented on this pull request.



> +  def trace_image(trace, options = {})
+    options[:class] ||= "trace_image"
+    options[:alt] ||= ""
+
+    link_to(image_tag(trace_icon_path(trace.user, trace),
+                      options.merge(:width => 50, :height => 50)),
+            show_trace_path(trace.user, trace),
+            :class => "d-inline-block")
+  end

`trace_icon` sounds fine... changed

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/5030#discussion_r1697206385
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/pull/5030/review/2208086320 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20240730/07c07df5/attachment.htm>


More information about the rails-dev mailing list