[openstreetmap/openstreetmap-website] Truncate user menu username (PR #4842)

Anton Khorev notifications at github.com
Sun May 26 23:08:02 UTC 2024


Follows #4828. If the username is long, the user menu button won't be oversized and won't trigger *small mode* for the header.

![image](https://github.com/openstreetmap/openstreetmap-website/assets/4158490/b9dfdde4-2794-4646-94cf-1833c907a4c4)

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

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

-- Commit Summary --

  * Use Bootstrap .nav in secondary header navigation
  * Increase secondary nav item padding to compensate removed whitespace
  * Adjust vertical alignment of user button contents
  * Truncate username in user menu

-- File Changes --

    M app/assets/javascripts/application.js (1)
    M app/assets/stylesheets/common.scss (14)
    M app/views/layouts/_header.html.erb (10)

-- Patch Links --

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

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

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


More information about the rails-dev mailing list