Datepicker: Show year/month on the same line

Fixes #7953
Closes gh-1277