[openstreetmap/openstreetmap-website] Truncate usernames in profile links (PR #4445)

Anton Khorev notifications at github.com
Sat Dec 30 03:30:49 UTC 2023


Experimenting with truncation of very long usernames. In general you can't line-wrap them, see the note at https://getbootstrap.com/docs/5.3/utilities/text/#word-break

![image](https://github.com/openstreetmap/openstreetmap-website/assets/4158490/a5b5a17c-1ff6-4f91-864f-ece3f71de93e)

![image](https://github.com/openstreetmap/openstreetmap-website/assets/4158490/eec097c2-bfcc-4868-be5a-0613e5aeef6a)

![image](https://github.com/openstreetmap/openstreetmap-website/assets/4158490/87091681-c471-4886-b992-1043affa4a2a)

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

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

-- Commit Summary --

  * Truncate usernames in profile links

-- File Changes --

    M app/helpers/changesets_helper.rb (2)
    M app/helpers/user_helper.rb (10)
    M app/views/messages/_message_summary.html.erb (2)
    M app/views/messages/_sent_message_summary.html.erb (2)
    M app/views/user_blocks/_block.html.erb (4)

-- Patch Links --

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

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

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


More information about the rails-dev mailing list