Adjust the button size in the editor to the title (2.1.54)

In version 2.1.49 the button would resize to the amount of writing automatically. As of 2.1.50 part of the label is hidden.
(If I apply a class of buttons from the source code to these buttons it works fine but I have not found a way to apply it to them.)
What is the solution to this?