Make pictures in comments bigger when clicking on them

Johannes Genberg Posted in Technical Support 2 weeks ago

When you upload a picture in a comment, the picture gets shrunked. Which is perfect, but it stays shrunked. Is there a way to be able to click on the picture to see a bigger version of it?

se Johannes Genberg Replied 1 week ago

Yeah, I can't program for sith :)

us Bansh33 - Replied 1 week ago

yeah, it could be made into a component, I just never bothered doing that since the code changes were fairly small. If you want to make it into a component, feel free though.

se Johannes Genberg Replied 2 weeks ago

I guess that makes sense. But can't you upload them in the component section?

us Bansh33 - Replied 2 weeks ago

I think I actually did submit those changes to the official github repository, but they opted not to merge the changes in since this does depend on having the fancybox component. I still think it'd be a better idea to not resize images with or without the fancybox component though.

se Johannes Genberg Replied 2 weeks ago

Yes, those two files did the trick. They should be uploaded to this site so people can easier find them :)

se Johannes Genberg Replied 2 weeks ago

Great work! I will take a look later :D

us Bansh33 - Replied 2 weeks ago

yeah, I made a post about this a while ago. It's in my profile. It's fairly easy to remove the code that resizes the image so that images in comments still look good when expanded.

the code is here: