| ... | ... | @@ -304,11 +304,16 @@ export function StyledDiffCodeView<LAnnotation = undefined>({ |
| 304 | 304 | diffHeaderHeight: 32, |
| 305 | 305 | hunkSeparatorHeight: 24, |
| 306 | 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 | 308 | // reintroduce the library's default 8px gap above its header. |
| 309 | 309 | spacing: 0, |
| 310 | 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, |
| 312 | 317 | }, |
| 313 | 318 | layout: { paddingTop: 0, paddingBottom: 0, gap: 0 }, |
| 314 | 319 | }} |