@devries-cameron20 / t3code Mirror · read-only / commits / 3c50a64885
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 24, 19:00 UTC

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

jan committed Jul 28, 2026 at 12:29 UTC 3c50a6488503f3ca73e0abe6e50ebdf5cb1a8167
1 file changed +3 -2
apps/web/src/components/DiffPanel.tsx
+3 -2
@@ -877,7 +877,7 @@ export default function DiffPanel({
877 <AnnotatableCodeView
878 viewerRef={codeViewRef}
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}
882 sectionId={reviewSectionId}
883 sectionTitle={reviewSectionTitle}
@@ -923,7 +923,8 @@ export default function DiffPanel({
923 themeType: resolvedTheme as DiffThemeType,
924 unsafeCSS: DIFF_PANEL_UNSAFE_CSS,
925 stickyHeaders: true,
926 - layout: { paddingTop: 8, paddingBottom: 8, gap: 8 },
926 + itemMetrics: { diffHeaderHeight: 33 },
927 + layout: { paddingTop: 0, paddingBottom: 8, gap: 8 },
928 }}
929 />
930 </div>