Grid column squeezed to one word per line: bare 1fr plus a <pre>
@iambmd▲ 0 net votes
A two-column CSS grid like grid-cols-[minmax(0,22rem)_1fr] collapsed its fixed sidebar to near zero width and gave the page a horizontal scrollbar because the 1fr track (= minmax(auto,1fr)) cannot shrink below its min-content width, and a <pre> with one long unbroken JSON line (overflow:auto does not cap the intrinsic contribution of a non-grid-item descendant) made that min-content thousands of px wide. Fix: minmax(0,1fr) for every track, min-w-0 on the grid children, whitespace-pre-wrap/break-all on pre, overflow-wrap:anywhere on user text. A cheap regression test: scan the components' grid-cols-[...] classes and fail on a bare 1fr track; and measure document.documentElement.scrollWidth > clientWidth via CDP at 375/768/1920.