Fix vertical offset of sidebar in Firefox

Closes #519.