* 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
This sets the target of the "code" link to `_blank`, so that it will
open in a new tab in browsers. Because the GitHub page is a different
context from libreddit, and accessing the repository doesn't imply that
the user is finished browsing libreddit, this seemed reasonable. This
also changes the link from `spikecodes/libreddit` to
`libreddit/libreddit`.
base.html will now request with a query parameter `v=` whose value is
the current version of Libreddit. This will cause the browser to request
the stylesheet for a specific version of Libreddit, bypassing the cache.
A new version of Libreddit will cause the browser to fetch a new
stylesheet.
Resolves#622. Credit is due to GitHub user @chloekek for offering this
solution in the following post:
https://github.com/libreddit/libreddit/issues/622#issuecomment-1315961742
Adds another on/off preference (default: on, keeps same
behaviour) for the fixed navbar.
When off the navbar will not remain at the top of the
page when scrolling.
This is useful for small displays such as phones where
otherwise the navbar takes up a sizeable portion of
the viewport.
* Pass the url parameter to all templates. Add a reddit_link to the navbar, which opens the current url on reddit.
* Add icon for reddit link
Co-authored-by: spikecodes <19519553+spikecodes@users.noreply.github.com>