Widen the branch-page container
Intent: Give the overall detail page more horizontal room so wide diffs are not unnecessarily constrained by the outer wrapper.
Affected files: crates/pika-news/templates/detail.html
@@ -21,9 +21,10 @@
.branch-page {
- width: min(1880px, calc(100vw - 2rem));
+ width: min(2200px, calc(100vw - 1rem));
+ max-width: none;
margin: 0 auto;
- padding: 2rem 1rem 3rem;
+ padding: 2rem 0.5rem 3rem;
}
Three coordinated tweaks expand the .branch-page container:
- Max width raised –
min(1880px, …)→min(2200px, …)adds 320 px of usable space on large displays. - Viewport calc loosened – The fallback expression changes from
calc(100vw - 2rem)tocalc(100vw - 1rem), clawing back another 1 rem on smaller screens. max-width: noneadded – Prevents any inherited or futuremax-widthrule from quietly re-constraining the container.- Horizontal padding reduced – Side padding drops from
1remto0.5rem, squeezing out a bit more room for the diff content inside the container.
The net effect is that the page can now stretch nearly edge-to-edge on ultra-wide monitors while still centering nicely via margin: 0 auto.