Let header username expand to screen width in small nav mode

This commit is contained in:
Anton Khorev 2024-12-06 12:19:43 +03:00
parent fe81ac334c
commit 4b92c8e555
2 changed files with 5 additions and 1 deletions

View file

@ -217,6 +217,10 @@ body.small-nav {
.search_forms {
display: block;
}
.username {
max-width: unset;
}
}
#sidebar .search_forms {

View 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>