authorgravatar for hi@4bs3nt.comjan <hi@4bs3nt.com> 2026-07-28 12:29:18+02:00
committergravatar for noreply@github.comGitHub <noreply@github.com> 2026-07-28 12:29:18+02:00
log3c50a6488503f3ca73e0abe6e50ebdf5cb1a8167
treea27ada6c87982fd1f2f8a8e3f90d0d667849aa17
parent9ccfd9dfef4e78285f9ac2a83b0333e67df36378
signature Signed by PGP key B5690EEEBB952194

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


1 files changed, 3 insertions(+), 2 deletions(-)

apps/web/src/components/DiffPanel.tsx+3-2
...@@ -877,7 +877,7 @@ export default function DiffPanel({...@@ -877,7 +877,7 @@ export default function DiffPanel({
877 <AnnotatableCodeView877 <AnnotatableCodeView
878 viewerRef={codeViewRef}878 viewerRef={codeViewRef}
879 key={collapseScopeKey ?? reviewSectionId}879 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"
881 files={codeViewFiles}881 files={codeViewFiles}
882 sectionId={reviewSectionId}882 sectionId={reviewSectionId}
883 sectionTitle={reviewSectionTitle}883 sectionTitle={reviewSectionTitle}
...@@ -923,7 +923,8 @@ export default function DiffPanel({...@@ -923,7 +923,8 @@ export default function DiffPanel({
923 themeType: resolvedTheme as DiffThemeType,923 themeType: resolvedTheme as DiffThemeType,
924 unsafeCSS: DIFF_PANEL_UNSAFE_CSS,924 unsafeCSS: DIFF_PANEL_UNSAFE_CSS,
925 stickyHeaders: true,925 stickyHeaders: true,
926 layout: { paddingTop: 8, paddingBottom: 8, gap: 8 },926 itemMetrics: { diffHeaderHeight: 33 },
927 layout: { paddingTop: 0, paddingBottom: 8, gap: 8 },
927 }}928 }}
928 />929 />
929 </div>930 </div>