Skip to content

Commit f173c7b

Browse files
committed
fix: show nav indicator on My Servers dropdown
1 parent 1f98d8f commit f173c7b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

public/js/app.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1227,7 +1227,7 @@ function renderSidebarNav() {
12271227
<i data-lucide="grid-3x3"></i>
12281228
Overview
12291229
</a>
1230-
<div class="nav-parent ${state.sidebarServersOpen ? 'open' : ''}" id="nav-servers-toggle">
1230+
<div class="nav-parent ${state.sidebarServersOpen ? 'open' : ''} ${(state.currentPage === 'servers' || state.currentPage === 'server') ? 'active' : ''}" id="nav-servers-toggle">
12311231
<i data-lucide="server"></i>
12321232
<span class="nav-parent-label">My Servers</span>
12331233
<svg class="nav-parent-chevron" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="9 18 15 12 9 6"></polyline></svg>
@@ -1489,7 +1489,7 @@ function navigateTo(page) {
14891489
}
14901490

14911491
function updateNavIndicator() {
1492-
const activeNav = document.querySelector('.nav-item.active');
1492+
const activeNav = document.querySelector('.nav-item.active, .nav-parent.active');
14931493
const indicator = document.getElementById('nav-indicator');
14941494
if (activeNav && indicator) {
14951495
indicator.style.top = activeNav.offsetTop + 'px';

0 commit comments

Comments
 (0)