How to get flex to specify several items in one line

want to make a calendar so that only 7 elements are displayed in a row. Sometimes there will be more and less in different mobile terminals due to different resolutions. Who knows to use flex to specify a row to display 7 elements, and fill the extra parts with blanks

Mar.01,2021

layout


parent node is set to horizontal flex layout, and each child node is set to 25% width

Menu