diff --git a/frontend/index.html b/frontend/index.html index 80818044..c6a20122 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 07d52f98..3e419306 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 (
@@ -198,7 +194,7 @@ export function SiteMenu() {
    {menuItems.length > 0 && menuItems.map((item) => { - return getMenuItem(item, closeMenus); + return getMenuItem(item, closeMenu); })}
diff --git a/frontend/src/components/Table/TableLayout.tsx b/frontend/src/components/Table/TableLayout.tsx index c23f50b3..63034091 100644 --- a/frontend/src/components/Table/TableLayout.tsx +++ b/frontend/src/components/Table/TableLayout.tsx @@ -12,10 +12,12 @@ interface TableLayoutProps { function TableLayout(props: TableLayoutProps) { const hasRows = props.tableInstance.getRowModel().rows.length > 0; return ( - - {hasRows ? : null} - -
+
+ + {hasRows ? : null} + +
+
); } diff --git a/frontend/src/pages/Login/index.module.css b/frontend/src/pages/Login/index.module.css index 16f8477c..d033dc0e 100644 --- a/frontend/src/pages/Login/index.module.css +++ b/frontend/src/pages/Login/index.module.css @@ -1,10 +1,3 @@ .logo { width: 200px; } - -.helperBtns { - position: absolute; - top: 10px; - right: 10px; - z-index: 1000; -} diff --git a/frontend/src/pages/Login/index.tsx b/frontend/src/pages/Login/index.tsx index 856266d8..90209d1d 100644 --- a/frontend/src/pages/Login/index.tsx +++ b/frontend/src/pages/Login/index.tsx @@ -1,4 +1,3 @@ -import cn from "classnames"; import { Field, Form, Formik } from "formik"; import { useEffect, useRef, useState } from "react"; import Alert from "react-bootstrap/Alert"; @@ -43,17 +42,17 @@ export default function Login() { return ( -
- - -
-
+
Nginx Proxy Manager +
+ + +