Fix panel styling

Fixing the inconsistent distance to the bottom and the margin of the
title if it has multiple lines.