diff --git a/src/components/layout/sidebar.tsx b/src/components/layout/sidebar.tsx index cd08190..279eaec 100644 --- a/src/components/layout/sidebar.tsx +++ b/src/components/layout/sidebar.tsx @@ -141,12 +141,18 @@ function NavItemLink({ // eslint-disable-next-line @typescript-eslint/no-explicit-any href={item.href as any} className={cn( - 'flex items-center gap-3 px-3 py-2 rounded-md text-sm font-medium transition-colors duration-150', + 'relative flex items-center gap-3 px-3 py-2 rounded-md text-sm font-medium transition-all duration-150', 'text-[#cdcfd6] hover:bg-[#171f35] hover:text-white', - active && 'border-l-2 border-[#3a7bc8] bg-[#3a7bc810] text-white pl-[10px]', + active && 'text-white pl-[14px]', collapsed && 'justify-center px-2', )} > + {active && !collapsed && ( + + )} {!collapsed && (
- + {section.title} {section.adminRequired && ( @@ -284,7 +290,7 @@ function SidebarContent({ ) : (
- + {(user?.name ?? 'U').slice(0, 1).toUpperCase()} diff --git a/src/components/layout/topbar.tsx b/src/components/layout/topbar.tsx index 3658b05..fefae42 100644 --- a/src/components/layout/topbar.tsx +++ b/src/components/layout/topbar.tsx @@ -57,7 +57,10 @@ export function Topbar({ ports, user }: TopbarProps) { {/* + New dropdown */} - @@ -93,7 +96,7 @@ export function Topbar({ ports, user }: TopbarProps) {