mirror of
https://github.com/harvard-edge/cs249r_book.git
synced 2026-07-16 14:42:29 -05:00
On reference-heavy chapters (e.g. vol1 training), long unbreakable tokens — paper hashes, arXiv ids, DOI suffixes — inside body links, column-margin notes, footnotes, callouts, and right-side TOC entries inflated the line box past their column. That cascaded into page-level horizontal scroll on narrower viewports. Add overflow-wrap: anywhere to: - the global `a` rule and the TOC container in book/quarto/assets/styles/_base-styles.scss (the volume builds use this; they don't import shared/styles/partials/_links or _toc) - the corresponding shared partials shared/styles/partials/_links.scss and shared/styles/partials/_toc.scss for ecosystem sites that do consume them (site, tinytorch, labs, kits, instructors, slides, mlsysim docs) `anywhere` (not `break-word`): only `anywhere` shrinks min-content size so flex/grid ancestors can actually narrow. Pair with `min-width: 0` on the TOC container to let the column take the smaller size. Regular prose still breaks at word boundaries first.