@devries-cameron20 / t3code Mirror · read-only / commits / 6bc6cb6be4
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, 16:30 UTC

fix(web): keep diff file lists scrollable past expanded files (#6423)

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>

Dominic Roy committed Aug 12, 2026 at 23:11 UTC 6bc6cb6be4ebecd5bd7a3b7b88f07cb61815ded5
2 files changed +8 -3
apps/web/src/components/diffs/StyledDiffCodeView.test.tsx
+1 -1
@@ -44,7 +44,7 @@ describe("StyledDiffCodeView", () => {
44 diffHeaderHeight: 32,
45 hunkSeparatorHeight: 24,
46 paddingTop: 0,
47 - paddingBottom: 0,
47 + paddingBottom: 8,
48 },
49 layout: { paddingTop: 0, paddingBottom: 0, gap: 0 },
50 });
apps/web/src/components/diffs/StyledDiffCodeView.tsx
+7 -2
@@ -304,11 +304,16 @@ export function StyledDiffCodeView<LAnnotation = undefined>({
304 diffHeaderHeight: 32,
305 hunkSeparatorHeight: 24,
306 // Pierre uses its general file spacing as a fallback in expanded-file layout paths.
307 - // Keep it zero alongside the explicit paddings or expanding the first file can
307 + // Keep it zero alongside the explicit paddingTop or expanding the first file can
308 // reintroduce the library's default 8px gap above its header.
309 spacing: 0,
310 paddingTop: 0,
311 - paddingBottom: 0,
311 + // Unlike the gap above, the 8px under a file's last line is painted
312 + // unconditionally by Pierre's stylesheet (`--diffs-gap-fallback`), so the metric has
313 + // to count it: at zero every expanded file's virtual height ran 8px short of its
314 + // rendered height, and the end of the list sat past the reachable scroll range —
315 + // one clipped file row per expanded file above it.
316 + paddingBottom: 8,
317 },
318 layout: { paddingTop: 0, paddingBottom: 0, gap: 0 },
319 }}