Dialog: Take header width into account, small fix for footerToolbar width

When calculating implicitWidth, also check the value of the heading. Give footerToolbar some padding to make sure it does not portrude over the dialog itself.

Before After
image image
image image

Merge request reports

Loading
Loading