Skip to content
This repository was archived by the owner on Oct 10, 2026. It is now read-only.

Commit 3c50a64

Browse files
authored
fix(web): prevent diff panel scroll jumping (pingdotgg#4724)
1 parent 9ccfd9d commit 3c50a64

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎apps/web/src/components/DiffPanel.tsx‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -877,7 +877,7 @@ export default function DiffPanel({
877877
<AnnotatableCodeView
878878
viewerRef={codeViewRef}
879879
key={collapseScopeKey ?? reviewSectionId}
880-
className="diff-render-surface h-full min-h-0 overflow-auto [&>div>div:last-child]:top-0! [&>div>div:last-child]:bottom-auto!"
880+
className="diff-render-surface h-full min-h-0 overflow-auto"
881881
files={codeViewFiles}
882882
sectionId={reviewSectionId}
883883
sectionTitle={reviewSectionTitle}
@@ -923,7 +923,8 @@ export default function DiffPanel({
923923
themeType: resolvedTheme as DiffThemeType,
924924
unsafeCSS: DIFF_PANEL_UNSAFE_CSS,
925925
stickyHeaders: true,
926-
layout: { paddingTop: 8, paddingBottom: 8, gap: 8 },
926+
itemMetrics: { diffHeaderHeight: 33 },
927+
layout: { paddingTop: 0, paddingBottom: 8, gap: 8 },
927928
}}
928929
/>
929930
</div>

0 commit comments

Comments
 (0)