From: Anton Khorev Date: Sun, 26 May 2024 22:59:32 +0000 (+0300) Subject: Truncate username in user menu X-Git-Tag: live~476^2 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/b79e4f04b9197e1c1954638db46c9d97597612d4?hp=037e05d737775cffa3bb9b52f507234ffdc6be0e Truncate username in user menu --- diff --git a/app/assets/stylesheets/common.scss b/app/assets/stylesheets/common.scss index 8fc503cbd..9be17a83a 100644 --- a/app/assets/stylesheets/common.scss +++ b/app/assets/stylesheets/common.scss @@ -114,6 +114,10 @@ header { nav.primary { margin-right: auto; } + + .username { + max-width: 12em; + } } nav.primary { diff --git a/app/views/layouts/_header.html.erb b/app/views/layouts/_header.html.erb index 95b2c5537..fdabea7cd 100644 --- a/app/views/layouts/_header.html.erb +++ b/app/views/layouts/_header.html.erb @@ -81,12 +81,12 @@ <% if current_user && current_user.id %>