Fixes navbar menu positioning for smaller screens

This commit is contained in:
Oliver 2021-11-08 13:38:03 +11:00
parent 9c2193a4cc
commit 35cfa387d1
2 changed files with 5 additions and 1 deletions

View File

@ -130,6 +130,10 @@
box-shadow: 0px 5px 5px rgb(0 0 0 / 5%);
}
.inventree-navbar-menu {
position: absolute !important;
}
.navbar-brand {
float: left;
}

View File

@ -76,7 +76,7 @@
<a class='nav-link dropdown-toggle' href='#' id='userMenuDropdown' role='button' data-bs-toggle='dropdown'>
<span class='fas fa-user'></span> <strong>{{ user.get_username }}</strong>
</a>
<ul class='dropdown-menu dropdown-menu-end'>
<ul class='dropdown-menu dropdown-menu-end inventree-navbar-menu'>
{% if user.is_authenticated %}
{% if user.is_staff %}
<li><a class='dropdown-item' href="/admin/"><span class="fas fa-user"></span> {% trans "Admin" %}</a></li>