fix(web): prevent diff panel scroll jumping (#4724)
This commit is contained in:
1 file changed
+3
-2
@@ -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>
|
||||
|
||||
Reference in new issue
Block a user