I have implemented a mat-button-toggle-group with 6 button-toggles. The challenge is to ensure that all buttons are displayed in a single line on desktop, while on smaller screens, the group should break and show 2 lines of buttons as shown below: https://i.sstatic.net/77gqm.png
Below is the code I am currently using (leveraging flexbox-grid):
<mat-button-toggle-group class="col-xs-12">
<mat-button-toggle class="col-xs-4 col-lg-2" value="1">1 Monat</mat-button-toggle>
<mat-button-toggle class="col-xs-4 col-lg-2" value="3">3 Monate</mat-button-toggle>
<mat-button-toggle class="col-xs-4 col-lg-2" value="6">6 Monate</mat-button-toggle>
<mat-button-toggle class="col-xs-4 col-lg-2" value="12">1 Jahr</mat-button-toggle>
<mat-button-toggle class="col-xs-4 col-lg-2" value="60">5 Jahre</mat-button-toggle>
<mat-button-toggle class="col-xs-4 col-lg-2" value="120">10 Jahre</mat-button-toggle>
</mat-button-toggle-group>
While this setup works perfectly on larger screens, the issue arises on mobile devices where only 3 buttons are visible and the rest are hidden from view, like in this image: https://i.sstatic.net/YkIl5.png
Can you suggest a solution to make my mat-button-toggle-group break into two lines on smaller screen sizes?