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(replay-vision): fade out the collapsed digest instead of hard-clipping (#71375)

Kim Svatos Dugan92a70ced2275
diff --git a/products/replay_vision/frontend/replay_scanners/components/ScannerDigestCard.tsx b/products/replay_vision/frontend/replay_scanners/components/ScannerDigestCard.tsx
index 05d5696cbe18..2c8978fe7b2d 100644
--- a/products/replay_vision/frontend/replay_scanners/components/ScannerDigestCard.tsx
+++ b/products/replay_vision/frontend/replay_scanners/components/ScannerDigestCard.tsx
@@ -151,7 +151,15 @@ export function ScannerDigestCard({
</>
}
/>
- <div className={expanded ? undefined : 'max-h-60 overflow-hidden'}>
+ {/* The mask's fixed offsets (vs percentages) keep short, unclipped digests fully opaque:
+ content under 12rem never reaches the fade band that softens the 15rem (max-h-60) cut. */}
+ <div
+ className={
+ expanded
+ ? undefined
+ : 'max-h-60 overflow-hidden [mask-image:linear-gradient(to_bottom,black_12rem,transparent_15rem)]'
+ }
+ >
{/* LLM/replay-derived content: render non-PostHog images as links, not auto-fetched <img>s. */}
<LemonMarkdown className="text-sm" disableImages>
{latestRun.synthesized_markdown}