Let header username expand to screen width in small nav mode
This commit is contained in:
parent
fe81ac334c
commit
4b92c8e555
2 changed files with 5 additions and 1 deletions
|
@ -217,6 +217,10 @@ body.small-nav {
|
||||||
.search_forms {
|
.search_forms {
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.username {
|
||||||
|
max-width: unset;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#sidebar .search_forms {
|
#sidebar .search_forms {
|
||||||
|
|
|
@ -85,7 +85,7 @@
|
||||||
</ul>
|
</ul>
|
||||||
<% if current_user && current_user.id %>
|
<% if current_user && current_user.id %>
|
||||||
<div class='d-inline-flex dropdown user-menu logged-in'>
|
<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") %>
|
<%= user_thumbnail_tiny(current_user, :class => "user_thumbnail_tiny rounded-1 bg-body") %>
|
||||||
<% if current_user.new_messages.size > 0 %>
|
<% if current_user.new_messages.size > 0 %>
|
||||||
<span class="badge count-number position-static m-1"><%= current_user.new_messages.size %></span>
|
<span class="badge count-number position-static m-1"><%= current_user.new_messages.size %></span>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue