[openstreetmap/openstreetmap-website] Use svg default avatar image on webpages (PR #4671)

Anton Khorev notifications at github.com
Tue Apr 9 12:44:54 UTC 2024


The svg file has a transparent background, which should help in dark mode by not being white and with a perception that [the space between the image and other things became smaller](https://github.com/openstreetmap/openstreetmap-website/pull/4667#issuecomment-2044173704).

![image](https://github.com/openstreetmap/openstreetmap-website/assets/4158490/edb693ad-af7a-429c-a25e-3ba13f61c09b)

with header PR merged:
![image](https://github.com/openstreetmap/openstreetmap-website/assets/4158490/db73eca7-0abe-47f1-a3e9-c7093c737d51)

`avatar_small.png` and `avatar_large.png` are still used in:
- emails
- Gravatar default image. Their docs don't say if svgs are supported.
You can view, comment on, or merge this pull request online at:

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

-- Commit Summary --

  * Replace avatars.svg with avatar.svg
  * Use avatar.svg on osm web pages

-- File Changes --

    A app/assets/images/avatar.svg (6)
    D app/assets/images/avatars.svg (182)
    M app/helpers/user_helper.rb (8)
    M test/helpers/user_helper_test.rb (12)

-- Patch Links --

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

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

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


More information about the rails-dev mailing list