[openstreetmap/openstreetmap-website] Define fixed size for trace images (PR #5030)
Anton Khorev
notifications at github.com
Tue Jul 30 15:46:31 UTC 2024
@AntonKhorev 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
If there's `trace_icon_path`, what's the corresponding image name? Probably `trace_icon_image`, or just `trace_icon`. Both of trace images are previews of a trace file/trackpoints.
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/5030#discussion_r1697195129
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/5030/review/2208068753 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20240730/4c77466d/attachment.htm>
More information about the rails-dev
mailing list