Fix #544: diff row backgrounds #548

Merged
crueber merged 1 commit from fix/issue-544 into main 2026-09-14 23:14:43 +00:00
Owner

Styling only: added/removed diff lines now carry full-row light green/red backgrounds (gutter cells included) on all diff surfaces (commit diff, PR Files tab via shared DiffBody; main PR conversation diff via DiffFile), both themes. Per-cell lineClass() (split pairs stay red-left/green-right); compound .diff-num.diff-add/.diff-del gutter tiebreaks in ui.css; unlayered line-hl selection still wins. diff.js untouched (hash vectors green). Tests: new diff-row-544.test.js (9 tests) + 1 stale pin updated; full node suite 1250/1249 (1 pre-existing live-server smoke failure, verified head-to-head on main); vite+esbuild green. Browser proof open (no browser available — shared daemon blocks loopback; verified by reasoning + tests, noted in the 12_web_ui.md decision). No new deps.

Styling only: added/removed diff lines now carry full-row light green/red backgrounds (gutter cells included) on all diff surfaces (commit diff, PR Files tab via shared DiffBody; main PR conversation diff via DiffFile), both themes. Per-cell lineClass() (split pairs stay red-left/green-right); compound .diff-num.diff-add/.diff-del gutter tiebreaks in ui.css; unlayered line-hl selection still wins. diff.js untouched (hash vectors green). Tests: new diff-row-544.test.js (9 tests) + 1 stale pin updated; full node suite 1250/1249 (1 pre-existing live-server smoke failure, verified head-to-head on main); vite+esbuild green. Browser proof open (no browser available — shared daemon blocks loopback; verified by reasoning + tests, noted in the 12_web_ui.md decision). No new deps.
DiffTable.jsx applies the shared lineClass() per cell (unified: gutter +
code; split: per side, so paired change rows stay red-left/green-right);
Pull.jsx DiffFile reuses it on its row divs; ui.css gains compound
.diff-num.diff-add/.diff-del gutter tiebreaks (both themes); unlayered
.diff-row.line-hl selection still wins. Styling only - diff.js untouched.
Guideline §8 extended + 12_web_ui.md decision (laws 11/12).
Sign in to join this conversation.
No description provided.