Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

fix(navigation): truncate long nav item labels instead of wrapping (#62862)

Paul D'Ambra39445374dcf2
diff --git a/frontend/src/layout/panel-layout/ai-first/NavLink.tsx b/frontend/src/layout/panel-layout/ai-first/NavLink.tsx
index 0af247783aec..d306a287f25f 100644
--- a/frontend/src/layout/panel-layout/ai-first/NavLink.tsx
+++ b/frontend/src/layout/panel-layout/ai-first/NavLink.tsx
@@ -57,7 +57,7 @@ export function NavLink({
to={to}
data-attr={dataAttr}
onClick={onClick}
- tooltip={isCollapsed ? label : undefined}
+ tooltip={label}
tooltipPlacement="right"
>
<span
@@ -71,7 +71,7 @@ export function NavLink({
{!isCollapsed && (
<span
className={cn(
- 'flex-1 text-left text-secondary group-hover:text-primary',
+ 'flex-1 truncate text-left text-secondary group-hover:text-primary',
isActive && 'text-primary'
)}
>