A flex item with a long URL in it pushes past its container instead of shrinking. Why does flex-shrink not save you?
Flex items default to min-width: auto, which stops them shrinking below their min-content width, and an unbroken URL makes that width the whole URL. flex-shrink only shares out space above that floor. Set min-width: 0 on the item and give the text a break point with overflow-wrap: anywhere; in grid, use minmax(0, 1fr).