A better fix is ensuring proper unique class names for the various buttons, then you can hide spacers with simple css