Commit Graph

286 Commits

Author SHA1 Message Date
spikecodes
8b8f55e09a
Fix sort button scrollbars 2021-12-31 10:42:44 -08:00
spikecodes
6b59976fcf
Fix #376 2021-12-27 23:16:01 -08:00
spikecodes
3188f9d8e7
Tweak settings page design 2021-12-27 13:43:44 -08:00
spikecodes
0656756d21
Fix #196 2021-11-29 22:29:41 -08:00
Nick Lowery
91cc140091
Set sub and user descriptions to overflow-wrap: anywhere (#345) 2021-11-28 02:49:41 +00:00
Nick Lowery
888e7b302d
Filter subreddits and users (#317)
* Initial work on filtering subreddits and users

* Fix doubly-prefixed subreddit name in search alt text (e.g. r/r/pics)

* Don't set post title to "Comment" if empty - this could throw off actual posts with the title "Comment"

* Filter search results

* Fix filtering to differentiate between "this subject itself is filtered" vs "all posts on this current page have been filtered"

* Remove unnecessary check

* Clean up

* Cargo format

* Collapse comments from filtered users

Co-authored-by: spikecodes <19519553+spikecodes@users.noreply.github.com>
2021-11-26 04:02:04 +00:00
Diego Magdaleno
bd413060c6
Support displaying awards (#168)
* 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>
2021-11-25 02:08:27 +00:00
obscurity
3054b9f4a0
Add rosebox theme (#237) 2021-11-24 19:31:19 +00:00
spikecodes
1cccef12a4
Add settings helper for HLS toggle 2021-11-23 22:43:25 -08:00
spikecodes
8e332b0630
Show full subreddit results in search 2021-11-23 22:24:23 -08:00
spikecodes
2878d9c799
Shrink and widen comment scores to fit better 2021-11-22 12:19:51 -08:00
spikecodes
9f8d36cb00
Prevent post previews from overflowing on Chromium 2021-11-22 08:40:36 -08:00
spikecodes
7220190811 Link subscriptions in settings to their respective feeds 2021-11-21 22:30:44 -08:00
mikupls
768820cd4c
Render markdown correctly in text post previews by using selftext_html. (#335)
* 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>
2021-11-21 23:17:52 +00:00
mikupls
5d9c320a7e
Format post and comment votes with a decimal place, like vanilla reddit does. (#324)
* Format post and comment votes with a decimal place, like vanilla reddit does.

Before this change, a vote count of 1999 was displayed as 1k, which is a pretty big gap. The displayed count also differed from what Reddit does. Now, the behaviour is consistent.

Added some tests for format_num.

* Provide more space for post scores

Co-authored-by: spikecodes <19519553+spikecodes@users.noreply.github.com>
2021-11-21 04:07:45 +00:00
Ruben Elshof
f7de5285e4
Hide post preview in compact mode. (#329) 2021-11-21 02:05:37 +00:00
mikupls
c2053524c7
Add text post previews. (#328)
* 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>
2021-11-20 21:13:50 +00:00
mikupls
0f7ba3c61d
Add "open in reddit" button to all pages (#304)
* 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>
2021-11-15 02:39:33 +00:00
George Roubos
567556711b
Update style.css (#282)
Add cursor pointer on hover of summary bar
2021-09-19 19:00:07 +00:00
spikecodes
e571cc3b1e
Tweak styling of Dracula theme 2021-07-19 10:07:00 -07:00
spikecodes
345f8e7b80
Dampen title color of visited posts. Fixes #222 2021-07-18 14:53:08 -07:00
spikecodes
ca3f6c0579
Fix #228 2021-05-28 12:01:20 -07:00
spikecodes
d27bd782ce
Specify fallback fonts 2021-05-26 20:30:08 -07:00
spikecodes
b9af6f47f3
Use Inter font 2021-05-19 16:09:08 -07:00
Adrian Lebioda
928907086c
HLS video playback (#182)
* 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>
2021-05-10 01:25:52 +00:00
curlpipe
9e4066658c
Added 2 new themes: violet & gold (#212)
* Added 2 new themes: violet & gold

* Increased contrast in Violet theme

* Changed accent colour on violet theme
2021-05-03 16:48:21 +00:00
Ben Smith
6f799b2617
Added laserwave theme (#210) 2021-04-30 16:26:49 +00:00
spikecodes
b47cfd1ba5
Only scroll overflowing tables in Wikis 2021-04-16 14:47:42 -07:00
spikecodes
28ca3589ed
Add scrollbar to overflowing wikipages. Fixes #192 2021-04-15 15:56:48 -07:00
spikecodes
b3e4b7bfae
Add user following functionality 2021-04-06 10:23:05 -07:00
Leopardus
c8805f1078 Add opensearch support 2021-04-06 01:23:14 +02:00
The TwilightBlood
48c3a8c0d0
Added Dracula/Nord theme (#171)
* Added Dracula theme

* Updated accent and added Nord theme

* Updated accent and added Nord theme

* Added official foreground colors
2021-04-02 00:56:28 +00:00
spikecodes
ab886d1e67
Fix #155 2021-03-20 13:03:05 -07:00
spikecodes
0d6e18d97d
Fill background of Apple Touch Icon 2021-03-18 21:36:39 -07:00
spikecodes
9b5176f7b9
Sub icons and truncated subscribers in search results 2021-03-18 21:32:54 -07:00
spikecodes
e15c15c390
Fix author flairs not showing 2021-03-17 17:08:43 -07:00
spikecodes
4a51b7cfb0
Horizontally squish comments 2021-03-10 15:10:59 -08:00
spikecodes
20f6945160
Fix #140 2021-02-27 13:34:02 -08:00
spikecodes
10c73fad7f
Switch favicon to ico 2021-02-26 12:04:11 -08:00
spikecodes
686d61801f
Fix #110 2021-02-25 10:24:37 -08:00
spikecodes
5d643277bc
Geometric logo 2021-02-25 09:07:45 -08:00
spikecodes
55e9915bb0
Refactor post_body width 2021-02-24 11:28:26 -08:00
spikecodes
6d08f2dd24
Fix post body overflow on mobile 2021-02-24 09:31:58 -08:00
spikecodes
2f3315dcfc
Fixes #130 2021-02-22 12:56:23 -08:00
spikecodes
d78f82649e
List other images in manifest 2021-02-21 20:37:53 -08:00
spikecodes
80fb3a5c18
Fix #110 2021-02-21 20:28:04 -08:00
spikecodes
de38f7ef18
Fix post flairs 2021-02-21 10:11:17 -08:00
spikecodes
bacb22f7f9
Fix post url indentation 2021-02-19 18:19:04 -08:00
spikecodes
e466be8946
Fix manifest and update dependencies 2021-02-19 11:10:48 -08:00
spikecodes
14ecf3cf60
Edit indicator 2021-02-14 14:53:09 -08:00
spikecodes
0cb7031c36
Fix focus outline 2021-02-13 13:38:12 -08:00
robrobinbin
93cfc713c6
Generate URL to restore settings, including subscriptions. Closes #89 (#116)
* Start recursive comments

* Update comment.html

* Fix move error

* Comment improvements

* Fix merge

* Remove extra endif from post.html

* Fix post.html

* Restore setting from link

* Tweak settings page

Co-authored-by: spikecodes <19519553+spikecodes@users.noreply.github.com>
2021-02-13 20:55:23 +00:00
spikecodes
f06320a4ae
Subscribe to multireddit button. Closes #104 2021-02-12 20:47:54 -08:00
robrobinbin
809be42e01
Add "View all comments" and "Show parent comments" buttons when viewing a single thread. Closes #65 (#115)
* Start recursive comments

* Update comment.html

* Fix move error

* Comment improvements

* Fix merge

* Remove extra endif from post.html

* Fix post.html

Co-authored-by: spikecodes <19519553+spikecodes@users.noreply.github.com>
2021-02-12 09:16:59 -08:00
spikecodes
58ca085521
Fix subscription list overflow 2021-02-11 09:18:32 -08:00
Spike
ebbdd7185f
Move from Actix Web to Tide (#99)
* Initial commit

* Port posts

* Pinpoint Tide Bug

* Revert testing

* Add basic sub support

* Unwrap nested routes

* Front page & sync templates

* Port remaining functions

* Log request errors

* Clean main and settings

* Handle /w/ requests

* Create template() util

* Reduce caching time to 30s

* Fix subscription redirects

* Handle frontpage sorting
2021-02-09 17:38:52 +00:00
robrobinbin
7edca18f8d
Inline videos/gifs for card view (#107)
* Basic gallery support

* Inline videos for card view
2021-02-08 00:22:14 +00:00
robrobinbin
cf45d53fdd
Basic gallery support (#103) 2021-02-06 20:05:11 +00:00
curlpipe
2a475d127a
Added black theme (#101) 2021-02-06 20:04:29 +00:00
robrobinbin
12a1b3f459
Update style.css 2021-02-03 22:01:46 +01:00
robin
653b0e7024 Don't use display contents and remove duplication 2021-02-03 20:11:04 +01:00
robrobinbin
6eae4bc47a
Update style.css 2021-02-02 21:23:51 +01:00
spikecodes
69941d9efd
Implement #88 2021-02-01 17:50:00 -08:00
spikecodes
956de50419
Change Libreddit PWA Theme Color 2021-02-01 16:26:35 -08:00
robrobinbin
f4f2d8a377
Update style.css 2021-02-01 21:02:38 +01:00
robrobinbin
a9dd2e6f2c
Place noscript placeholder into grid 2021-02-01 20:43:32 +01:00
robrobinbin
7f320b3143
Update style.css 2021-02-01 20:27:56 +01:00
JPyke3
0a140a6ffc
Merge branch 'master' of github.com:JPyke3/libreddit into master 2021-02-01 11:13:36 +01:00
JPyke3
e837d84105
Add Support for iOS "Add to Homescreen"
* Adds basic Manifest.json
 * Adds Meta Tags for iOS
 * Adds Meta Tags for Android
 * Adds Logo for Manifest.json
 * Adds iOS Logo for homescreen
2021-02-01 11:10:53 +01:00
spikecodes
f6d791ccd9
Style focus outline 2021-01-31 20:56:13 -08:00
spikecodes
c32d62fbd5
Shrink links to icons on mobile 2021-01-31 13:22:11 -08:00
robrobinbin
2a27850914
Minor style tweak
on small screens, subscriptions are put below the logo, which looks a bit strange and makes it somehow harder to hit
2021-01-31 19:41:32 +01:00
spikecodes
269bb0bfb6
Convert subscription requests to POST 2021-01-30 21:21:46 -08:00
spikecodes
7933d840b3
Squish navbar further 2021-01-30 20:42:12 -08:00
spikecodes
21d96e261f
Set subscriptions as default front page 2021-01-30 20:18:57 -08:00
spikecodes
9c58d23b41
Unwrap #subscriptions 2021-01-30 18:16:42 -08:00
Matthew Crossman
8cc01c58f3
Move the subs list into the navbar. 2021-01-31 09:52:18 +11:00
Matthew Crossman
449899962a
Change subscription to get. Add subs to settings. 2021-01-30 22:27:49 +11:00
Matthew Crossman
dc2030e6f3
Vertical list subscriptions. 2021-01-30 21:21:54 +11:00
Matthew Crossman
11e4ff42ed
Clean-up and more consistent styles. 2021-01-30 19:33:38 +11:00
Matthew Crossman
345308a9ac
Basic subscribe functionality. 2021-01-30 18:00:00 +11:00
Matthew Crossman
75bbcefbec
Display sub list from list in cookie.
Very basic sub list setup. Cookie must be manually added in devtools.
2021-01-30 16:00:55 +11:00
spikecodes
00b135fb0f Fix #75 2021-01-28 15:50:18 -08:00
spikecodes
2270b6cf95 Reduce post padding 2021-01-21 21:25:51 -08:00
Spike
758b627660
Merge pull request #68 from robrobinbin/master
Absolutly no jumping when images (fail to) load
2021-01-21 23:32:59 +00:00
robin
baf7272cfd Absolutly no jumping when images (fail to) load 2021-01-21 22:04:06 +01:00
spikecodes
610fcfbf87 Fix #67 2021-01-20 17:55:04 -08:00
spikecodes
dea7f33910 Add code optimizations 2021-01-20 17:38:34 -08:00
robin
c299e128ab Inline images rework 2021-01-21 00:12:54 +01:00
robin
5d44a071f9 Why?? 2021-01-20 20:59:57 +01:00
spikecodes
7360503234 Make posts single-color 2021-01-18 21:32:25 -08:00
spikecodes
140c1b1bfa Small fixes 2021-01-18 13:12:59 -08:00
spikecodes
616751e054 Embolden markdown blockquotes 2021-01-17 22:32:42 -08:00
spikecodes
7f9cb1b35a Fix post score and thumbnail backgrounds 2021-01-17 20:35:49 -08:00
spikecodes
c030771d36 Refine transitions 2021-01-17 19:16:15 -08:00
spikecodes
a562395c26 Refactor system theme 2021-01-17 18:11:36 -08:00
Matthew Crossman
899a414cf6
Merge branch 'master' of https://github.com/spikecodes/libreddit 2021-01-18 11:24:49 +11:00
spikecodes
a184559c21 Clean CSS 2021-01-17 16:20:17 -08:00
Matthew Crossman
1c9fd46e98
Merge branch 'master' of https://github.com/spikecodes/libreddit 2021-01-18 11:16:02 +11:00
spikecodes
738941d830 Fix arrow alignment 2021-01-17 16:03:14 -08:00
Matthew Crossman
06ab7a4181
Merge branch 'master' of https://github.com/spikecodes/libreddit 2021-01-18 10:59:26 +11:00
Matthew Crossman
6981d94417
Clean up theme section of CSS. 2021-01-18 10:56:30 +11:00
spikecodes
dd60cb5b2b SVG arrow 2021-01-17 15:51:03 -08:00
Matthew Crossman
2d973707f3
Add auto theme selection in style. 2021-01-18 10:42:55 +11:00
Robin
d45ee03122 Resolve merge conflicts 2021-01-17 23:54:48 +01:00
Robin
162e00b243 Improve accessibility rating 2021-01-17 23:49:36 +01:00
spikecodes
801216dfe9 Include code link on mobile 2021-01-17 13:24:44 -08:00
Robin
090ca1a140 Add comment counter and other post improvements 2021-01-17 20:39:57 +01:00
spikecodes
a0bc1732cf Moderator and admin distinguishers 2021-01-16 15:02:24 -08:00
spikecodes
151490faf0 Add space next to comment collapse marker 2021-01-16 11:49:49 -08:00
spikecodes
fdf60e7255 Separate datetime into relative and absolute 2021-01-16 11:40:32 -08:00
robrobinbin
998b301229 Improve support for text-only browsers 2021-01-16 11:00:15 +01:00
spikecodes
0099021478 Refactor flair spacing 2021-01-15 15:55:10 -08:00
robrobinbin
d19e73f059 Add placeholder for posts without thumbnail 2021-01-14 21:45:43 +01:00
robrobinbin
a85a4278f6 Add subreddits to search results 2021-01-14 19:22:50 +01:00
robrobinbin
c6627ceece
Merge branch 'master' into rich-flairs 2021-01-13 08:27:39 +01:00
spikecodes
96607256fc Add Favicon 2021-01-12 20:18:20 -08:00
spikecodes
eb9a0dcb4a Fix GIFs 2021-01-12 19:52:02 -08:00
robrobinbin
41c4661bbb Rich flairs 2021-01-12 23:55:35 +01:00
robrobinbin
bbe7024323 Start richtext flairs 2021-01-12 22:43:03 +01:00
robrobinbin
add7efea3c
Update style.css 2021-01-12 18:53:10 +01:00
Spike
065d82a5f5
Merge pull request #45 from somoso/long-label-fix
Stop label from being long for joined subreddits
2021-01-12 08:46:35 -08:00
somoso
65f1a2afb2 Stop label from being long for joined subreddits
Browsing with a long joined subreddit list will cause the label to look a bit weird.

Example: https://libredd.it/r/Android+AnimalsBeingBros+AnimalsBeingDerps+AnimalsBeingJerks+AppleWatch+CatSlaps+CatSmiles+CatsBeingAdorable+FreeTube+Games+Ijustwatched+IllegallySmol+IllegallySmolCats+IpodClassic+LearnRubyonRails+Megadrive+MovieDetails+Music+NetflixBestOf+NintendoSwitch+Possums+Teefers+UKPersonalFinance+airplaneears+apple+aww+brushybrushy+cats+catswhotrill+curledfeetsies+cyberpunkgame+dataisbeautiful+dechonkers+digital_ocean+dogs+dogsareliquid+dogswithjobs+emulation+greebles+happycowgifs+hardware+iOSDevelopment+iOSProgramming+iosdev+kittykankles+learnruby+likeus+mac+mashups+microsoft+movies+netflix+netsec+pihole+playstation+programming+rarepuppers+raspberry_pi+redditsync+rubyonrails+satelliteears+shittymoviedetails+spookyteefies+technology+teefies+vampirecats+velvethippos

That will cause the label to be excessively long
2021-01-12 15:47:39 +00:00
somoso
6eb9e6f0c0 Fix the thumbnail issue on iOS 2021-01-12 15:43:27 +00:00
spikecodes
48d2943f72 Fix subreddits not showing sidebars 2021-01-11 16:44:31 -08:00
robrobinbin
6dbd002acd Add direct link to thumbnail 2021-01-11 23:08:12 +01:00
spikecodes
62bcc31305 Fix Wide UI on Mobile 2021-01-10 18:48:08 -08:00
spikecodes
08683fa5a6 Light theme 2021-01-10 18:15:34 -08:00
spikecodes
f445c42f55 Wide UI Mode 2021-01-10 13:08:36 -08:00
spikecodes
fac56d7f87 Markdown spoilers and post footers on videos 2021-01-08 21:57:36 -08:00
spikecodes
b8cdc605a2 Front page config and settings note 2021-01-08 20:55:40 -08:00
Soheb
7fcb7fcfed
Break word to stop it disappearing on mobile
This kept happening to me but I couldn't reproduce it in the iPad Simulator. Finally got it nailed down and sorted.

Tested this on Safari (mobile and desktop), Firefox, and Edge browser.
2021-01-08 23:08:58 +00:00
Soheb
770c4d3630
Fix themeing for all browsers
Really noticable on iOS, but ensuring all browsers get the love.

The buttons and input aren't as flat as they usually are on my desktop Firefox. This patch should sort that out.
2021-01-08 20:26:29 +00:00
spikecodes
e7b448a282 Add shadow to navbar 2021-01-07 10:49:10 -08:00
spikecodes
c7c787dff1 Fix comment padding 2021-01-07 10:49:00 -08:00
spikecodes
59a34a0e85 Fixed navbar 2021-01-07 10:46:00 -08:00
spikecodes
3444989f9a Default Comment Sort Setting 2021-01-07 08:38:05 -08:00
spikecodes
c9cd825d55 Create CSS variables for shadow and text color 2021-01-06 10:51:13 -08:00
spikecodes
b50fa6f3ae Settings Button 2021-01-05 18:16:32 -08:00
spikecodes
aa7b4b2af7 Settings with Layouts 2021-01-05 18:04:49 -08:00
spikecodes
9c1a932214 Clean Up Post Headers 2021-01-04 21:17:19 -08:00
spikecodes
8c0269af1c Fix post tags on mobile 2021-01-04 19:43:35 -08:00
spikecodes
df89c5076e Compact Libreddit Posts on Mobile 2021-01-04 19:26:41 -08:00
spikecodes
a422a74747 Make Design More Compact 2021-01-03 19:44:44 -08:00
spikecodes
0dd114c166 Post upvote ratio, permalink and reddit link 2021-01-03 13:06:49 -08:00
spikecodes
9263b0657f Fix navbar padding 2021-01-02 22:40:22 -08:00
spikecodes
5ea504e6e8 Restrict Proxy to Reddit Domains 2021-01-02 20:50:23 -08:00
spikecodes
0925a9b334 Add Wiki Pages 2021-01-01 22:21:43 -08:00
Soheb
a7925ed62d
Fix posts overflowing on Safari on iOS
In Safari, the value `anywhere` is not supported for property `overflow-wrap`. Once changed to `break-word`, it behaves like it does in Chrome and Firefox.
2021-01-01 15:46:36 +00:00
spikecodes
2d77a91150 Refactor Page Titles and Add Subreddit/User Titles 2020-12-31 20:21:56 -08:00