fix(web): prevent diff panel scroll jumping (#4724)

This commit is contained in:
jan authored and GitHub committed 2026-07-28 12:29:18 +02:00
1 parent 9ccfd9dfef
commit 3c50a64885
1 file changed
+3 -2
+3 -2
View File
@@ -877,7 +877,7 @@ export default function DiffPanel({
<AnnotatableCodeView
viewerRef={codeViewRef}
key={collapseScopeKey ?? reviewSectionId}
className="diff-render-surface h-full min-h-0 overflow-auto [&>div>div:last-child]:top-0! [&>div>div:last-child]:bottom-auto!"
className="diff-render-surface h-full min-h-0 overflow-auto"
files={codeViewFiles}
sectionId={reviewSectionId}
sectionTitle={reviewSectionTitle}
@@ -923,7 +923,8 @@ export default function DiffPanel({
themeType: resolvedTheme as DiffThemeType,
unsafeCSS: DIFF_PANEL_UNSAFE_CSS,
stickyHeaders: true,
layout: { paddingTop: 8, paddingBottom: 8, gap: 8 },
itemMetrics: { diffHeaderHeight: 33 },
layout: { paddingTop: 0, paddingBottom: 8, gap: 8 },
}}
/>
</div>