My code looks like yours. It is a repeating panel inside a datagrid. It is just that I can make the buttons smaller in the CSS but as you can see in the example the spacing between them remains large eventhough the buttons are smaller. I don´t understand how I can remedy this problem. Any suggestion would be appreciated.
The way I have reduced the size of the button is with transform: scale(0.5). I have created a new role as can be seen below and it works fine for the button itself.
So I would suggest you edit the button size using the font size property. Please clone the app I sent, to see how to do this:
That way you get the same results as I have got and you don’t even need to edit any CSS
If you really want to do it with CSS, then don’t use transform: scale (0.5)
But instead, use font-size: 10px. Then you don’t have to worry about spacing.