Re:GitLab Web IDE
by TeMPOraL on Friday June 15, 2018 @04:14PM
(#17323163)
Yup, this is very bad.
That said, I find all JS-based "zooming" of images bad. The simplest behaviour is the best here - just make the thumbnail a link to raw image directly. If you absolutely have to have that JS-based gallery, then for goodness' sake, don't do it with CSS background shenanigans - use the <img> tag, so that "right click + view image" works.
(To be fair to Gitlab, in this article "view image" works, and can be used to see images in full resolution.)
Alas, I'm pretty sure that half of this breakage are designers cargo-culting trends instead of focusing on usability; the other half is user-hostile designs purposefully making it harder for regular users to get to the URL of the actual image.
That said, I find all JS-based "zooming" of images bad. The simplest behaviour is the best here - just make the thumbnail a link to raw image directly. If you absolutely have to have that JS-based gallery, then for goodness' sake, don't do it with CSS background shenanigans - use the <img> tag, so that "right click + view image" works.
(To be fair to Gitlab, in this article "view image" works, and can be used to see images in full resolution.)
Alas, I'm pretty sure that half of this breakage are designers cargo-culting trends instead of focusing on usability; the other half is user-hostile designs purposefully making it harder for regular users to get to the URL of the actual image.