Mr. Karim’s stall signs with a long title that will not truncate: the browser measures the room flex: 1 offers, the item’s min-content and how far it spills…
This is the most common "why does it not work" bug in modern layout: an ellipsis in flex, a chat list that will not scroll, a 1fr grid column that stretches, a <pre> pushing the page wider. All one cause: an item’s automatic floor. Once you see the floor, the cure is plain: min-width: 0, min-height: 0, overflow, or minmax(0, 1fr).
A flex item has a floor: min-width: auto = min-content, not 0
min-width: 0 on the flex item around the title (at every flex level down to the title). The default auto holds it at its content’s width.overflow: auto will not scroll; its parent grows instead In flex-direction: column, the flex item around the scroller needs min-height: 0, the vertical twin of min-width: 0.1fr 1fr = minmax(auto, 1fr), its lower bound the item’s min-content. Use minmax(0, 1fr), or min-width: 0 on the item.min-width (.main) to 0 The floor tape goes, .main shrinks to the room there is, and the name is finally cut with "…".auto, try only overflow: hidden The ellipsis works too: an item whose overflow is not visible has no min-content floor.pre, then overflow: auto on .main .main shrinks and the formula scrolls inside it: scrollWidth is bigger than clientWidth.grid: change 1fr to minmax(0, 1fr) 1fr = minmax(auto, 1fr). Dropping its lower bound to 0 lets the column shrink.