My current setup involves using the bootstrap-grid system alongside Material UI, which has been working well overall. However, I am facing a specific issue where the grid system does not maintain its slot space after applying padding or margin. This causes items to move down to the next row or line when there is insufficient space.
Here is an example
In the provided example, each button is set to have a grid size of 3, indicating that there should be 4 buttons in each row. Due to slight padding and margin adjustments, only 3 buttons are displayed in each line.
I am looking for a solution where the items automatically resize their width when margin and padding are added, rather than moving to the next row or line. How can this be achieved?
Thank you.