From b79e4f04b9197e1c1954638db46c9d97597612d4 Mon Sep 17 00:00:00 2001 From: Anton Khorev Date: Mon, 27 May 2024 01:59:32 +0300 Subject: [PATCH] Truncate username in user menu --- app/assets/stylesheets/common.scss | 4 ++++ app/views/layouts/_header.html.erb | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) 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 %>