Core: Width auto for inline button elements in toolbars

Fixes gh-7232
Closes gh-7446