Bold a sidebar menu item when active

This commit is contained in:
Dita Aji Pratama 2024-09-26 22:40:52 +07:00
parent 3cb04b2a6d
commit e2a90cc4dc
2 changed files with 5 additions and 1 deletions

View File

@ -1,7 +1,7 @@
<!-- Sidebar -->
<div class="sidebar p-3" id="sidebar">
<!-- <h5>Sidebar</h5> -->
<ul class="nav flex-column pb-5">
<ul class="navbar-nav flex-column pb-5">
% for item in menu:
% if any(role in item['roles'] for role in user_roles):
<li class="nav-item">

View File

@ -20,6 +20,10 @@ body {
overflow-y: auto; /* Make sidebar scrollable */
}
.sidebar .navbar-nav .nav-item .active {
font-weight: bold;
}
.sidebar.minimized {
transform: translateX(-100%);
}