Web IDE blob image + default fallback
What does this MR do?
It provides an image preview for blobs in the Web IDE, if no current Viewer is matched then it will fallback to the Download Viewer which provides a button to download.
Image Size in KB is displayed, we determine its display size and if it is bigger then the actual display a zoom functionality is provided.
The image view will also be the base for the diff viewing in an MR.
Why was this MR needed?
To make non code blobs viewable in the Web IDE in this case especially images.
Screenshots (if relevant)
Does this MR meet the acceptance criteria?
-
Tests added for this feature/bug - Review
-
Has been reviewed by UX -
Has been reviewed by Frontend
-
-
Conform by the merge request performance guides -
Conform by the style guides -
Squashed related commits together -
Internationalization required/considered -
End-to-end tests pass ( package-and-qa
manual pipeline job)
What are the relevant issue numbers?
Edited by Lukas Eipert