diff --git a/frontend/index.html b/frontend/index.html index 808180447..c6a201226 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -5,6 +5,7 @@ Nginx Proxy Manager + -
+
{localeOptions.map((item) => { return ( {children}
; + return
{children}
; } diff --git a/frontend/src/components/SiteHeader.tsx b/frontend/src/components/SiteHeader.tsx index 07d52f98d..3e4193066 100644 --- a/frontend/src/components/SiteHeader.tsx +++ b/frontend/src/components/SiteHeader.tsx @@ -25,7 +25,7 @@ export function SiteHeader() { > -
+
-
+
+
+ {/* biome-ignore lint/a11y/noStaticElementInteractions lint/a11y/useKeyWithClickEvents: This div is not interactive. */} +
e.stopPropagation()}> +
+
{currentUser?.nickname}
+
+ +
+
+
+ + +
+
+
+
void) => { }; export function SiteMenu() { - // This is hacky AF. But that's the price of using a non-react UI kit. - const closeMenus = () => { - const navMenus = document.querySelectorAll(".nav-item.dropdown"); - navMenus.forEach((menu) => { - menu.classList.remove("show"); - const dropdown = menu.querySelector(".dropdown-menu"); - if (dropdown) { - dropdown.classList.remove("show"); - } - }); - }; + const closeMenu = () => setTimeout(() => { + const navbarToggler = document.querySelector(".navbar-toggler"); + const navbarMenu = document.querySelector("#navbar-menu"); + if (navbarToggler && navbarMenu?.classList.contains("show")) { + navbarToggler.click(); + } + }, 300); return (
-