ctrlcctrlv / infinity

A vichan fork permitting users to create their own boards
Other
318 stars 149 forks source link

Let board owners customize how big their thumbnails should be #156

Open Admin-Kaf opened 10 years ago

Admin-Kaf commented 10 years ago

Seriously, 255×255px is good for OP but really ennoying when scroling hundred of messages.

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

ctrlcctrlv commented 10 years ago

This is configurable in the software. Maybe I should make it per board...

icypants commented 10 years ago

No, make them user configurable in the Options instead. Nobody is going to be happy if half the boards have too big thumbnails and the other half has too small.

I recently discovered you can actually resize the thumbnails yourself with a tiny bit of CSS. All we need to do is add these into the Options panel so people who don't understand CSS can modify the thumbnail size. This makes the max thumbnail 200*200 instead of the current 255x255 (remove div.post.reply to make it apply to OP images too):

div.post.reply a:not([data-expanded="true"]) img.post-image{ width: auto !important; height: auto !important; max-height: 200px !important; max-width: 200px !important; }

Everyone is happy. No server modification needed. No incompatibilities with old "board thumbnail sizes", or anything like that.