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

mmd notifications at github.com
Tue Jul 30 16:07:27 UTC 2024


@mmd-osm commented on this pull request.



> @@ -2,4 +2,12 @@ module TraceHelper
   def link_to_tag(tag)
     link_to(tag, :tag => tag, :page => nil)
   end
+
+  def trace_icon(trace, options = {})
+    options[:class] ||= "trace_image"
+    options[:alt] ||= ""
+
+    image_tag trace_icon_path(trace.user, trace),
+              options.merge(:width => 50, :height => 50)

Yes, :size is ok, the resulting css will be the same as before. Changed.

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

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


More information about the rails-dev mailing list