diff --git a/src/app/[orgId]/components/Header.tsx b/src/app/[orgId]/components/Header.tsx index 9ab5b5b5..937ec15c 100644 --- a/src/app/[orgId]/components/Header.tsx +++ b/src/app/[orgId]/components/Header.tsx @@ -10,9 +10,9 @@ import { DropdownMenuItem, DropdownMenuLabel, DropdownMenuSeparator, - DropdownMenuShortcut, DropdownMenuTrigger, } from "@app/components/ui/dropdown-menu"; +import { Separator } from "@app/components/ui/separator"; import Link from "next/link"; type HeaderProps = { @@ -33,54 +33,72 @@ export default function Header({ email, orgName, name }: HeaderProps) { return ( <>
- - {orgName} - -
-
- - {name || email} - - - - - - + {orgName} + + +
+
+ - -
- {name && ( -

- {name} -

- )} -

- {email} -

-
-
- - - Profile - Log out - - - + Documentation + + + Support + +
+ +
+ {/* Make the text truncate on smaller screens */} + + {name || email} + + + + + + + +
+ {name && ( +

+ {name} +

+ )} +

+ {email} +

+
+
+ + + Profile + Log out + +
+
+
); diff --git a/src/app/[orgId]/components/TopbarNav.tsx b/src/app/[orgId]/components/TopbarNav.tsx index 851882ec..7be363fc 100644 --- a/src/app/[orgId]/components/TopbarNav.tsx +++ b/src/app/[orgId]/components/TopbarNav.tsx @@ -39,7 +39,7 @@ export function TopbarNav({ href={item.href.replace("{orgId}", orgId)} className={cn( "px-2 py-3 text-md", - pathname === item.href.replace("{orgId}", orgId) + pathname.startsWith(item.href.replace("{orgId}", orgId)) ? "border-b-2 border-stone-600 text-stone-600" : "hover:text-gray-600 text-stone-400", "whitespace-nowrap", diff --git a/src/app/[orgId]/layout.tsx b/src/app/[orgId]/layout.tsx index 6156b2ad..85d023c9 100644 --- a/src/app/[orgId]/layout.tsx +++ b/src/app/[orgId]/layout.tsx @@ -50,8 +50,8 @@ export default async function ConfigurationLaytout({ return ( <> -
-
+
+