[openstreetmap/openstreetmap-website] Fix element pagination width calculation (PR #5211)
Anton Khorev
notifications at github.com
Fri Sep 13 17:34:50 UTC 2024
@AntonKhorev commented on this pull request.
> @@ -86,7 +86,7 @@ def sidebar_classic_pagination(pages, page_param)
max_width_for_default_padding = 35
width = 0
- pagination_items(pages, {}).each do |body|
+ pagination_items(pages, {}).each do |(body)|
Rubocop is going to complain then that I'm probably iterating over a hash and that I should use each_key instead.
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/5211#discussion_r1759242258
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/5211/review/2303701455 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20240913/37dc75c7/attachment.htm>
More information about the rails-dev
mailing list