diff --git a/components/shared/nav-bar.tsx b/components/shared/nav-bar.tsx index 5ca2abc..dcee6ab 100644 --- a/components/shared/nav-bar.tsx +++ b/components/shared/nav-bar.tsx @@ -44,47 +44,69 @@ export function NavBar({ isDemo, roles }: NavBarProps) { ] return ( -
- {/* Logo */} - - - Scrum4Me - {isDemo && ( - - Demo - - )} - +
+ {/* Links: logo + nav */} +
+ + + Scrum4Me + {isDemo && ( + + Demo + + )} + - {/* Nav links */} -
+ + {/* Midden: productnaam */} +
+ {currentProduct && ( + + + + }> + {currentProduct.name.length > 20 + ? currentProduct.name.slice(0, 20) + '…' + : currentProduct.name} + + {currentProduct.name} + + )} - +
{/* Rechts: rollen + instellingen + uitloggen */} -
+
{roles.length > 0 && ( @@ -97,23 +119,6 @@ export function NavBar({ isDemo, roles }: NavBarProps) { )} - {currentProduct && ( - - - - }> - {currentProduct.name.length > 20 - ? currentProduct.name.slice(0, 20) + '…' - : currentProduct.name} - - {currentProduct.name} - - - )}