More correct fix for anchors hiding.

When the navbar is collapsed, there's no need for padding.