hugo-easy-gallery icon indicating copy to clipboard operation
hugo-easy-gallery copied to clipboard

Option to not crop image in thumbnail?

Open lambdafu opened this issue 6 years ago • 2 comments

For some type of images (technical diagrams, screenshots), it seems better to not crop the thumbnail into a square, but to display the thumbnail with a border (so the whole image is visible). Is there an easy way to do this?

lambdafu avatar Jun 08 '18 08:06 lambdafu

yes, it is possible and quite easy to do by modifying the file named hugo-easy-gallery.css :

.gallery .img { position: absolute; left: 0; right: 0; top: 0; bottom: 0; background-size: contain;

garchymede avatar Sep 26 '18 20:09 garchymede

Thanks @garchymede, will add this as an option next time I do an update

liwenyip avatar Sep 27 '18 05:09 liwenyip