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(endpoints): truncate descriptions in list (#96801)

Jovan Sakovic753d93aa3329
diff --git a/products/endpoints/frontend/Endpoints.tsx b/products/endpoints/frontend/Endpoints.tsx
index 9d214afc2516..499d726c161d 100644
--- a/products/endpoints/frontend/Endpoints.tsx
+++ b/products/endpoints/frontend/Endpoints.tsx
@@ -2,7 +2,7 @@ import { useActions, useValues } from 'kea'
import { router } from 'kea-router'
import { IconRefresh } from '@posthog/icons'
-import { LemonButton, LemonDialog } from '@posthog/lemon-ui'
+import { LemonButton, LemonDialog, Tooltip } from '@posthog/lemon-ui'
import { AccessControlAction } from 'lib/components/AccessControlAction'
import { ObjectTags } from 'lib/components/ObjectTags/ObjectTags'
@@ -96,7 +96,13 @@ export const EndpointsTable = (): JSX.Element => {
</LemonTag>
</>
}
- description={record.description}
+ description={
+ record.description ? (
+ <Tooltip title={record.description}>
+ <span className="line-clamp-1 max-w-[30rem] break-all">{record.description}</span>
+ </Tooltip>
+ ) : undefined
+ }
/>
)
},