Similar to #5371 but for notes.

Fixes #3964.

Before:
![image](https://github.com/user-attachments/assets/44d859dc-20de-43b3-a46f-0095dcf48196)
note "43 (part of username) minutes ago", this is issue #3964

After:
![image](https://github.com/user-attachments/assets/084ec00e-cf3c-4552-898f-d14daf7acda4)

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

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

-- Commit Summary --

  * Truncate if necessary and set dir=auto for note usernames

-- File Changes --

    M app/helpers/note_helper.rb (3)
    M app/views/notes/show.html.erb (24)
    M test/helpers/note_helper_test.rb (34)

-- Patch Links --

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

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

Message ID: <openstreetmap/openstreetmap-website/pull/5...@github.com>
_______________________________________________
rails-dev mailing list
rails-dev@openstreetmap.org
https://lists.openstreetmap.org/listinfo/rails-dev

Reply via email to