: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.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
fix(desktop): keep every file mounted in the review diff list (#106440)
Adam Leithefe7c778e8e0
diff --git a/products/desktop/packages/ui/src/features/code-review/components/ReviewShell.tsx b/products/desktop/packages/ui/src/features/code-review/components/ReviewShell.tsxindex cbb48d9afbc8..7bf2108908cf 100644--- a/products/desktop/packages/ui/src/features/code-review/components/ReviewShell.tsx+++ b/products/desktop/packages/ui/src/features/code-review/components/ReviewShell.tsx@@ -28,6 +28,7 @@ import {REVIEW_FILE_BROWSER_MIN_WIDTH,REVIEW_LIST_BUFFER_PX,REVIEW_LIST_ESTIMATED_ITEM_SIZE,+ REVIEW_LIST_MIN_ITEM_SIZE,} from "../constants";import { useReviewDraftsStore } from "../reviewDraftsStore";import { REVIEW_HOST, type ReviewHost } from "../reviewHost";@@ -349,7 +350,7 @@ export function ReviewShell({<divkey={item.key}data-scroll-key={item.scrollKey}- className="pb-2 last:pb-0"+ style={{ minHeight: REVIEW_LIST_MIN_ITEM_SIZE }}>{item.node}</div>diff --git a/products/desktop/packages/ui/src/features/code-review/constants.ts b/products/desktop/packages/ui/src/features/code-review/constants.tsindex a5e26b2de555..14f9ef672ce3 100644--- a/products/desktop/packages/ui/src/features/code-review/constants.ts+++ b/products/desktop/packages/ui/src/features/code-review/constants.ts@@ -14,3 +14,9 @@ export const DIFF_METRICS = {hunkSeparatorHeight: 32,spacing: 8,} as const;++/**+ * A diff draws nothing until the highlighter is ready. virtua drops a 0px row+ * from its range and never mounts it again, so a row keeps at least its header.+ */+export const REVIEW_LIST_MIN_ITEM_SIZE = DIFF_METRICS.diffHeaderHeight;