fix(bar): properly align titles if switching to view with no buttons

Closes #1242