diff --git a/static/js/components.js b/static/js/components.js index 421465f..906120b 100644 --- a/static/js/components.js +++ b/static/js/components.js @@ -626,17 +626,14 @@ document.addEventListener('DOMContentLoaded', () => { // --- SIDEBAR NAVIGATION ACTIVE HIGHLIGHTING --- const currentPath = window.location.pathname; - const sidebar = document.getElementById('wiki-sidebar'); - if (sidebar) { - sidebar.querySelectorAll('a[data-wiki-path]').forEach(link => { - const path = link.getAttribute('data-wiki-path'); - if (currentPath === path) { - link.className = 'flex items-center px-3 py-2 text-xs font-semibold rounded-lg bg-indigo-600/20 text-indigo-400 border border-indigo-500/10 transition'; - } else { - link.className = 'flex items-center px-3 py-2 text-xs font-semibold text-muted-foreground hover:text-white rounded-lg hover:bg-accent hover:text-accent-foreground transition'; - } - }); - } + document.querySelectorAll('a[data-wiki-path]').forEach(link => { + const path = link.getAttribute('data-wiki-path'); + if (currentPath === path) { + link.className = 'flex items-center px-3 py-2 text-xs font-semibold rounded-lg bg-indigo-600/20 text-indigo-400 border border-indigo-500/10 transition'; + } else { + link.className = 'flex items-center px-3 py-2 text-xs font-semibold text-muted-foreground hover:text-white rounded-lg hover:bg-secondary transition'; + } + }); // --- CUSTOM SELECT DROPDOWN LOGIC --- document.addEventListener('click', (event) => { diff --git a/templates/base.html b/templates/base.html index ff72c1e..7444d88 100644 --- a/templates/base.html +++ b/templates/base.html @@ -48,7 +48,7 @@ -