]> git.openstreetmap.org Git - rails.git/commitdiff
Let header username expand to screen width in small nav mode
authorAnton Khorev <tony29@yandex.ru>
Fri, 6 Dec 2024 09:19:43 +0000 (12:19 +0300)
committerAnton Khorev <tony29@yandex.ru>
Fri, 6 Dec 2024 09:19:43 +0000 (12:19 +0300)
app/assets/stylesheets/common.scss
app/views/layouts/_header.html.erb

index cf63c8f8c4600ef3026ceb4f08bcf5e58e8f020b..668d050d8bbbc42da49826961dc97fcd2fd03563 100644 (file)
@@ -217,6 +217,10 @@ body.small-nav {
     .search_forms {
       display: block;
     }
+
+    .username {
+      max-width: unset;
+    }
   }
 
   #sidebar .search_forms {
index ff95be2f5bd648a3ca8e527bf127bd73f606d033..190ea44e5654b53b63af24f070ad8b0130609f9a 100644 (file)
@@ -85,7 +85,7 @@
     </ul>
     <% if current_user && current_user.id %>
       <div class='d-inline-flex dropdown user-menu logged-in'>
-        <button class='d-flex gap-1 align-items-center justify-content-center dropdown-toggle btn btn-outline-secondary border-secondary-subtle bg-body text-secondary px-2 py-1 flex-grow-1' type='button' data-bs-toggle='dropdown'>
+        <button class='d-flex gap-1 align-items-center justify-content-center dropdown-toggle btn btn-outline-secondary border-secondary-subtle bg-body text-secondary px-2 py-1 flex-grow-1 mw-100' type='button' data-bs-toggle='dropdown'>
           <%= user_thumbnail_tiny(current_user, :class => "user_thumbnail_tiny rounded-1 bg-body") %>
           <% if current_user.new_messages.size > 0 %>
             <span class="badge count-number position-static m-1"><%= current_user.new_messages.size %></span>