Fix layout in sidebar teaser and full modes.

#3955