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(experiments): clamp hypothesis to two lines in experiments list (#75385)

Juraj Majerik970ba8b74a2d
diff --git a/frontend/src/scenes/experiments/Experiments.tsx b/frontend/src/scenes/experiments/Experiments.tsx
index 926427ae6246..b8aff11a13c7 100644
--- a/frontend/src/scenes/experiments/Experiments.tsx
+++ b/frontend/src/scenes/experiments/Experiments.tsx
@@ -17,6 +17,7 @@ import { dayjs } from 'lib/dayjs'
import { LemonButton } from 'lib/lemon-ui/LemonButton'
import { More } from 'lib/lemon-ui/LemonButton/More'
import { LemonDivider } from 'lib/lemon-ui/LemonDivider'
+import { LemonMarkdown } from 'lib/lemon-ui/LemonMarkdown'
import { LemonProgress } from 'lib/lemon-ui/LemonProgress'
import { LemonTable, LemonTableColumn, LemonTableColumns } from 'lib/lemon-ui/LemonTable'
import { atColumn, createdAtColumn, createdByColumn } from 'lib/lemon-ui/LemonTable/columnUtils'
@@ -254,7 +255,14 @@ const ExperimentsTable = ({
)}
</>
}
- description={experiment.description}
+ description={
+ experiment.description ? (
+ // Hypotheses can run many paragraphs, so clamp to keep list rows compact
+ <LemonMarkdown className="max-w-[30rem] line-clamp-2" lowKeyHeadings disableImages>
+ {experiment.description}
+ </LemonMarkdown>
+ ) : undefined
+ }
/>
)
},