Action Button Spacing disturbed when Custom Buttons are added to the top of record view

I have been facing the issue that if we add multiple buttons on the top of the record view the buttons collide with each other i.e. there is no space between the buttons. Is anyone else facing this issue or how can I solve this issue?