This commit is contained in:
KingKDot
2026-04-05 21:32:18 -05:00
parent 2470e9d1f2
commit 8b43934b83
7 changed files with 660 additions and 144 deletions
+2 -6
View File
@@ -14,7 +14,7 @@ import { showCertBannerIfNeeded } from "./cert-banner.js";
const host = document.getElementById("top-nav");
if (host) {
const refs = mountNav(host);
showCertBannerIfNeeded(host);
showCertBannerIfNeeded(document.getElementById("sb-mobile-bar") || host);
const { applyAdaptiveNavLayout } = createAdaptiveNavController(host, refs);
const path = window.location.pathname;
@@ -34,11 +34,7 @@ if (host) {
const activeId = activeMap[path];
if (activeId) {
const el = document.getElementById(activeId);
if (el) {
el.classList.remove("bg-slate-900/70", "text-slate-300");
el.classList.add("bg-slate-800", "text-slate-50");
el.classList.add("nav-active");
}
if (el) el.classList.add("nav-active");
}
if (refs.logoutBtn && !refs.logoutBtn.dataset.boundLogout) {
refs.logoutBtn.dataset.boundLogout = "true";