Fix to hide grade if gradebook is hidden, and expand grade if shortname does not fill block.

A couple of minor changes to the original - one to fix a minor CSS issue, one to hide the grade if the gradebook is hidden from students.