Fix body offset when navbar changes mode for narrow device widths.