Improved preview, including images and automatically previewing small files (#738)
Compare changes
Beginning with 2nd June, only the "Single Sign On" option for login to the GitLab web interface will be possible. If you don't have an MPCDF wide second factor so far, please get one at our SelfService (https://selfservice.mpcdf.mpg.de). The GitLab internal second factor will not work.
Adds support for simple image preview, and paves the way for adding viewers for additional file types. Images are previewed automatically if they are small enough (<10 MB), otherwise the user has to request it by clicking on a preview button. For text files (the fallback viewer) the user always has to press the button to open the viewer.
Also solves some issues with the text preview scrolling.