I have a simple layout that says wrap 300px flex items on the same line when possible and fill up the space (flex-grow) when there\'s not enough for another on that line.