A dashboard uses grid-template-columns: 240px 1fr. A long line inside a <pre> forces horizontal page scrolling. How can the main column shrink while allowing the code block to scroll independently?
Editorial starter question from DevCircle, provided for learning and discussion.
Grid items can have content-based automatic minimum widths. minmax(0, 1fr) and min-width: 0 let the content area shrink. The code remains readable through its own scrollbar. Check nested flex/grid children if overflow persists.