Grid: Auto-fit buttons

Trying to setup Auto-fit on a grid I use for buttons called .action-group.

See images below.

A card using the action group grid on tablet. The grid has two columns as intended.

Screen Shot 2021-09-07 at 6.04.51 PM

On mobile, the grid needs to stack vertically only if there is no room in its parent container.

Screen Shot 2021-09-07 at 6.05.01 PM

This is how it’s setup.

Screen Shot 2021-09-07 at 6.05.29 PM

How do I set up the grid to automatically wrap the buttons on to the next row when space is needed?


Here is my site Read-Only: LINK
(how to share your site Read-Only link)