Lovelace entities - reduce space between elements

I had no luck with the card-modder so far, tried a couple of hours.
I didn’t try the picture-elements card yet.