I had a similar issue in 2025, whereby the flexbox wasn't expanding to the right height. Moving veritcal-rl css to the child element (or create a div for it to be a child if text directly used in parent) fixed it for me.