@devries-cameron20 / t3code Mirror · read-only / commits / 4036e18597
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 23, 13:00 UTC

fix(web): keep wrapped split diffs from jumping while scrolling (#20022)

Julius Marminge committed Oct 15, 2026 at 13:31 UTC 4036e1859771e483c67cac6fd2a8472673ca5da5
1 file changed +7
apps/web/src/components/diffs/StyledDiffCodeView.tsx
+7
@@ -14,6 +14,13 @@ import { DiffWorkerPoolProvider } from "../DiffWorkerPoolProvider";
14
15 /** The app's diff stylesheet, shared by single-file renderers so their separators match. */
16 export const DIFF_VIEW_UNSAFE_CSS = `${DIFF_SURFACE_THEME_UNSAFE_CSS}
17 +/* A 1fr track's automatic minimum grows with the currently mounted lines. In split
18 + wrap mode that shifts width between columns, rewraps rows and makes the virtualizer
19 + repeatedly correct the scroll position. Keep both code columns at the same width. */
20 +[data-diff-type="split"][data-overflow="wrap"] {
21 + --diffs-code-grid: var(--diffs-grid-number-column-width) minmax(0, 1fr);
22 +}
23 +
24 :is(
25 [data-line],
26 [data-line-annotation],