>>2446>i even tried using calc to subtract the gap from the basis but the math is just breaking my layout on smaller viewportsstop fighting with flex and just use
css grid instead. spent three hours on a client dashboard last week trying to fix that exact same stretching issue before i realized
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr))
solves it instantly