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

mmd notifications at github.com
Mon Jul 29 18:54:32 UTC 2024


Since [loading trace images](https://www.openstreetmap.org/traces) from AWS S3 might take a bit, users are currently experiencing a re-rendering of the page. I found this a bit annoying, and added a fixed 50x50 size for the trace png now. With the change in place, the re-rendering of the page no longer happens. The trace png is shown initially as a blank spot.

### Situation before:
#### First rendering (w/o images)
![image](https://github.com/user-attachments/assets/4632f6cf-c9b8-429b-ae5f-45144671f24b)

#### Second rendering (w/ images)
![image](https://github.com/user-attachments/assets/03aeab0e-6a3a-4f76-b4bc-2965c9ba32db)



You can view, comment on, or merge this pull request online at:

  https://github.com/openstreetmap/openstreetmap-website/pull/5030

-- Commit Summary --

  * Trace image with fixed size

-- File Changes --

    M app/helpers/trace_helper.rb (10)
    M app/views/traces/_trace.html.erb (4)

-- Patch Links --

https://github.com/openstreetmap/openstreetmap-website/pull/5030.patch
https://github.com/openstreetmap/openstreetmap-website/pull/5030.diff

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

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


More information about the rails-dev mailing list