Grid card now overflows section

Edit: Solved below

I was making some buttons to serve as remote control. All looked fine earlier and filled the component, then for some reason it started overflowing. I can change layout of the grid card to more rows, but it doesn’t match the actual size in the rows.

The result is that the buttons in a different section pull up over the grid card

In HTML terminology, I’d like the remote buttons to show “block”…
I’ve looked for a solution, but nothing came up.

So I continued the tinkering and it seems that I changed the columns / row in the Layout tab of the grid card. Once set, there wasn’t really a way to get out from that in the UI. I removed the information in the raw configuration, then it worked again.