fix mobile display of viewport and toc