modal for viewing attachments in-tab
Major changes:
- Clicking image/video attachments opens them in a modal that can be closed with a click outside (or on the image itself if it's an image) or the escape button.
- Makes thumbnails smaller and lines them up nicer, because viewing them properly is easier now
Minor changes:
- Automatically get rid of thumbnails when more than 9 attachments in a post to protect from spammy posts
- middle-clicking on a NSFW-hider or video opens the media in new tab as it should
- Audio attachments automatically use full-width of status (seek bar was unusable on chrome when not full width)
- Modify default NSFW hider image to have a more suitable aspect ratio
- Change the cutoff for mobile vs desktop layout from 960px to 800px, because there's no downsides to this
- playing videos inline is an option, using contain over cover is an option
Potential TODOs (separately most likely):
- Make thumbnail size customizeable
- Bring back gif-looping -opion if deemed necessary (done)
- Open videos in a way that allow interaction with timeline at the same time (done)
Edited by Shpuld Shpludson