* Fix a whole bunch of mobile styling bugs
* Make searchbox scroll fix only apply in mobile mode to prevent bug
* Remove the min-width requirement for the main column
This was meant to be removed already, this is what fixes posts having an odd right side gap before swapping to the mobile layout
* Make margins consistent between fixed and unfixed navbar settings
* Remove some empty space from deleted option
* Make mobile layout post width fix only apply in mobile mode to prevent bug
* Make sure some options only get applied to the elements that need them, also fix the margins on the settings page
* Move search comments option before it starts touching the sort options and wrapping the x amount of comments text
* Trigger the even further compacted layout a little earlier, right before text begins wrapping in odd ways
* In the extra small mobile layout make give up/downvote numbers enough room so they aren't clipping out of their box
* Fix https://github.com/redlib-org/redlib/issues/172
* Properly center search box instead of having it slightly skewed
* Undo word wrapping since it breaks the sorting options and the only other viable setting has an absolute conniption on Chrome for some reason
* Readd word wrapping and just force it to normal for the sorting section
* Make post flair line up with title
* Make post flair position consistent
* Make footer text properly horizontally centered in mobile mode and fix slight vertical misalignment issues
* Make feeds button appear in settings menu to keep navbar looking consistent
* Fix extra navbar padding on search page
* Reduce gap between navbar and content in mobile mode
* Reduce gap between navbar and content in mobile mode
* Use singular form of "comment" for posts with 1 comment
* Fix incorrect text on comment count tooltip
Co-authored-by: Spike <19519553+spikecodes@users.noreply.github.com>
* Fix regression with comments from deleted mods
Starting with https://github.com/spikecodes/libreddit/pull/367/files
comments from deleted moderators and admins(?) aren't highlighted.
* Highlight mod and admin usernames in posts
Works like on reddit + shows highlight for mods on the search page.
* Initial implementation of award parsing
* Posts: Implement awards as part of post
* Posts: remove parse_awards dead code
* Posts: initial implementation of displaying Awards at the post title
* Posts: Proxy static award images
* Client: i.redd.it should take path as argument not ID
* Posts: Just like Reddit make award size 16px
* Templates: limit the awards to 4 awards to increase performance
* Comments: Make awards a property of comments and display them
* Format and correct /img/:id
* Update comment.html
* [Optimization] Awards is not longer async
* [Revert] Posts can now display more than 4 awards again
* [Implementation] Awards not display on the frontpage
* [Implementation] Display count on awards
* Post: Start working on awards css
* Awards: Move the image size to css
* Awards: Start implementing tooltips
* Refactor awards code and tweak CSS indentation
* Unify Awards::new and Awards::parse
* Use native tooltips and brighten awards background
Co-authored-by: Spike <19519553+spikecodes@users.noreply.github.com>
* Render markdown correctly in text post previews by using selftext_html.
I was mistakenly under the impression that we somehow render markdown ourselves, but turns out we just take whatever HTML reddit gives us, and we also need to do this for text previews.
Use CSS to limit the size of the previews instead of truncating in the template.
Fix table CSS.
* Fix post_body padding and trim post_previews
Co-authored-by: spikecodes <19519553+spikecodes@users.noreply.github.com>
* Add text post previews.
* Add mask gradient over post preview text
* Increase post title font weight for contrast
Co-authored-by: spikecodes <19519553+spikecodes@users.noreply.github.com>
* Add the poster attribute even if a post claims to be type gif. Default to none-preloading for gifs like video-typed posts do.
* Disable autoplay for videos in feeds
Co-authored-by: Spike <19519553+spikecodes@users.noreply.github.com>
* HLS video playback
Signed-off-by: Adrian Lebioda <adrianlebioda@gmail.com>
* Add LibreJS compliance
* Locally host hls.js
* Notification about HLS under videos that support it
Signed-off-by: Adrian Lebioda <adrianlebioda@gmail.com>
* Use .contains() instead of .find() == None
* Make list of preferences constant
* Change headers_keys from Vector into Array
* Fix incorrect detecting of # in paths
* Remove trailing-slash-appending if statement
* Change HLS notification styling
Co-authored-by: spikecodes <19519553+spikecodes@users.noreply.github.com>