From bc115d2e8ed879adde439afe531f3de742ad2c78 Mon Sep 17 00:00:00 2001 From: Arthur Belleville Date: Mon, 7 Apr 2025 08:50:34 +0200 Subject: [PATCH] Improve layout of the navbar --- ui/src/components/NavigationBar.tsx | 81 ++++++++++++++++++++--------- 1 file changed, 55 insertions(+), 26 deletions(-) diff --git a/ui/src/components/NavigationBar.tsx b/ui/src/components/NavigationBar.tsx index f62a403..c64478e 100644 --- a/ui/src/components/NavigationBar.tsx +++ b/ui/src/components/NavigationBar.tsx @@ -69,7 +69,7 @@ function NavLink(props: NavLinkProps) { "[&>[data-ui=notification-badge]]:-translate-y-1/2", "[&>[data-ui=notification-badge]]:bg-navbar-darker", "[&>[data-ui=notification-badge]]:p-3", - "[&>[data-ui=notification-badge]]:text-xs/6", + "[&>[data-ui=nxotification-badge]]:text-xs/6", "[&>[data-ui=notification-badge]]:font-semibold", isActive ? "bg-navbar-darker font-semibold text-white [&>[data-ui=notification-badge]]:bg-transparent" @@ -98,11 +98,11 @@ export function UserMenuPopover({ isCollapsed }: { isCollapsed: boolean }) { ref={ref} isIconOnly={isCollapsed} className={twMerge( - "flex items-center w-90 justify-start hover:bg-navbar-darker" + "flex items-center justify-start hover:bg-navbar-darker w-full" )} > @@ -177,9 +177,9 @@ export const SideNavigation = ({ return (
-
+
Logo XTablo

-
+
@@ -242,43 +250,53 @@ export function MainNavigation({ isCollapsed }: { isCollapsed: boolean }) { { path: "/", label: "Tableau de Bord", - icon: , + icon: , }, { path: "/devis", label: "Devis", - icon: , + icon: , }, { path: "/factures", label: "Factures", - icon: , + icon: , }, { path: "/planning", label: "Planning", - icon: , + icon: , }, { path: "/chantiers", label: "Chantiers", - icon: , + icon: , }, ]; return (