Core: Width auto for inline button elements in toolbars

Fixes gh-7232