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(paths): clamp long path endpoint urls to two lines (#61354)

Georgis Andoniscbb9db10e63c
diff --git a/frontend/src/scenes/insights/EditorFilters/PathsTarget.tsx b/frontend/src/scenes/insights/EditorFilters/PathsTarget.tsx
index 006445e44112..854d9689dfd1 100644
--- a/frontend/src/scenes/insights/EditorFilters/PathsTarget.tsx
+++ b/frontend/src/scenes/insights/EditorFilters/PathsTarget.tsx
@@ -75,7 +75,9 @@ function PathsTarget({ position, insightProps }: PathTargetProps): JSX.Element {
return <span />
}
return startPoint ? (
- <span className="label">{startPoint}</span>
+ <span className="label line-clamp-2 [overflow-wrap:anywhere]" title={startPoint}>
+ {startPoint}
+ </span>
) : (
<span className="label text-secondary">Add start point</span>
)
@@ -89,7 +91,9 @@ function PathsTarget({ position, insightProps }: PathTargetProps): JSX.Element {
return <span />
}
return endPoint ? (
- <span className="label">{endPoint}</span>
+ <span className="label line-clamp-2 [overflow-wrap:anywhere]" title={endPoint}>
+ {endPoint}
+ </span>
) : (
<span className="label text-secondary">Add end point</span>
)