[openstreetmap/openstreetmap-website] Switch to inline colourable markers (PR #5854)
Tom Hughes
notifications at github.com
Fri May 2 17:29:15 UTC 2025
@tomhughes commented on this pull request.
> @@ -26,6 +26,10 @@
<% else %>
<%= render :partial => "notes_paging_nav" %>
+ <svg width="0" height="0" class="end-100 position-absolute">
As all three places that include the partial wrap it in the same `svg` element why not include that in the partial?
> @@ -26,6 +26,10 @@
<% else %>
<%= render :partial => "notes_paging_nav" %>
+ <svg width="0" height="0" class="end-100 position-absolute">
+ <%= render :partial => "layouts/defs_markers", :locals => { :types => %w[cross tick] } %>
What's the logic behind `defs_markers` as the name? I assume defs is definitions or something? I suggest just using `markers` as the name I think.
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/5854#pullrequestreview-2812545336
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/5854/review/2812545336 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20250502/bca65285/attachment-0001.htm>
More information about the rails-dev
mailing list