Made document viewer responsive

- Follow up on #3529 per latest designs
- Adjust the default zoom level based on the available space