Flip the close/minimise button order

"float: right" was removed when changing to the flex layout for the
titlebar, so the order became incorrect.