By default, all buttons in the body content are styled as block-level elements so they fill the width of the screen:

Button

However, if you want a more compact button that is only as wide as the text and icons inside, add the data-inline="true" attribute to the button:

Button