Fix Flex class docs by replacing 'vertical space' with 'space on its main axis' so that the language fits both column and row. (#29057)