Commit Graph

295 Commits

Author SHA1 Message Date
Butter Cat
e6b9a2e426
Fix anchor tags scrolling to the wrong place when fixed navbar is enabled (#82) 2024-04-07 10:52:59 -04:00
Daniel Nathan Gray
d4a2b3edc6
Add SVG logo (#84)
* Add SVG version of logo

* Add PNG generated from SVG
2024-04-07 10:51:33 -04:00
Márton
5de171b13a
Make HLS support checking more robust (#61) 2024-03-04 19:59:54 -05:00
Carbrex
c6030064f1
Added video quality feature (#43)
* Fixed docker compose errors

* Added quality selector

* Remove log statement

Co-authored-by: Matthew Esposito <matt@matthew.science>

* Show kbps in quality

Co-authored-by: Matthew Esposito <matt@matthew.science>

* Make highest quality default

* Add styling, default option to highest

---------

Co-authored-by: Matthew Esposito <matt@matthew.science>
2024-02-06 15:27:23 -05:00
Matthew Esposito
5604786146
Add new hls.js version, add script for updating (fixes #29) 2024-01-24 14:26:52 -05:00
Butter Cat
a445759a69
Be slightly smarter with options, fix footer being 30px above or below bottom on short posts 2024-01-06 16:53:58 -05:00
Butter Cat
b578b717d7
Less buggy solution to solving the floating footer problem 2024-01-06 03:49:38 +00:00
Butter Cat
5d8529d6bb
Fix floating footer with "Keep navbar fixed" off 2024-01-03 21:26:56 -05:00
Matthew Esposito
3dee29f3ef
Add scrolling to highlighted comment (fix #13) 2024-01-02 19:43:00 -05:00
Matthew Esposito
b0f985c687
Libreddit -> Redlib 2023-12-26 18:25:52 -05:00
Matthew Esposito
902acb257d
Merge remote-tracking branch 'origin/pull/176' 2023-12-26 15:47:12 -05:00
Matthew Esposito
f26c8be931
Add TokyoNight - Merge 450 2023-12-26 15:45:12 -05:00
Matthew Esposito
0eb5e18cef
Merge remote-tracking branch 'origin/pull/536' 2023-12-26 15:20:21 -05:00
Dean Sallinen
dd611b17ad
Add start URL to manifest.json
Adds the last criteria to make the application an installable PWA on mobile.
2023-09-17 23:00:01 -07:00
fawn
13394b4a5e
Add ability to hide subreddit panel (closes #801) 2023-06-07 13:51:27 +03:00
Matthew Esposito
193a6effbf
Merge pull request #792 from beucismis/master 2023-05-31 18:42:39 -04:00
gmnsii
38ee0d9428 make comment search bar color change based on theme 2023-05-31 19:41:13 +02:00
beucismis
6c0e5cfe93 Add cursor:pointer for button and select 2023-04-29 21:16:02 +03:00
Matthew Esposito
4a1b448abb
Merge pull request #776 from iTzBoboCz/polls 2023-04-17 18:12:02 -04:00
Matthew Esposito
aaf05de1a8
Merge pull request #771 from gmnsii/comment-search 2023-04-15 10:55:10 -04:00
Ondřej Pešek
94a781c82c fix(polls): minor improvements 2023-04-01 14:31:39 +02:00
gmnsii
1e418619f1 Feat: search for comments within posts
Add the ability to search for specific comments within posts.
Known issues:
  - Just like on reddit, this does not work with comment sorting. The
    sorting order is ignored during the search and changing the sorting
    order after the search does not change anything. I do not think we
    can fix this before reddit does, since in my understanding we rely
    on them for the sorting. However we could implement a default
    sorting method ourselves by taking the vector of comments returned
    from the search and sorting it manually.
  - The UI could be improved on mobile. On screens with a max width
    inferior to 480 pixels, the comment search bar is displayed below
    the comment sorting form. It would be great if we could make the
    search bar have the same width as the whole comment sorting form
    but I do not have the willpower to write any more css.
2023-03-24 17:41:26 -07:00
Ondřej Pešek
c1c867a5ff feat: add polls 2023-03-23 13:21:09 +01:00
Tsvetomir Bonev
dead990ba0
fix(style): fit footer width to body size 2023-03-23 13:49:40 +02:00
Daniel Valentine
aece392a86
Pad bottom of body to prevent footer collision (fixes #747) 2023-03-10 21:33:45 -07:00
Spike
af6722c053
Move unimportant links to footer (#728) 2023-03-08 22:14:43 -07:00
Spike
5e03d701e4
Revert "Move unimportant links to footer"
This reverts commit e3df3a9470.
2023-02-19 18:03:55 +00:00
Spike
e3df3a9470
Move unimportant links to footer 2023-02-19 18:00:56 +00:00
Daniel Valentine
35504eda14
v0.29.3 -- fix layout bugs on mobile
Addresses the following layout bugs in mobile view:

* improper rendering of award images on posts
* upvote ratio no longer appearing on bottom-right corner of post as
  before
* Reddit warning pop-up background cut off at bottom of page

Fixes #713.
2023-02-14 20:19:19 -07:00
Daniel Valentine
2774d15298
Fix bug causing user/sub title to appear off-center. 2023-02-12 01:02:25 -07:00
Daniel Valentine
37f71c48d1
Reduce size of instance info button in footer. 2023-02-08 00:33:31 -07:00
potatoesAreGod
fa68bf561b
added leaving reddit dialog (#643) 2023-02-08 00:24:06 -07:00
spikecodes
a4eecb251e
Fix listing_options hidden overflow 2023-02-04 00:02:32 -08:00
Daniel Valentine
9bf6194b09
v0.28.1
Remove font-weight associated with instance info button, which made the
icon look ghastly in Chrome.
2023-01-31 00:14:23 -07:00
Matthew Esposito
8be5fdee2d
Implement instance info endpoint (JSON, YAML, TXT) (#685)
Co-authored-by: Daniel Valentine <daniel@vielle.ws>
Co-authored-by: spikecodes <19519553+spikecodes@users.noreply.github.com>
2023-01-30 02:02:43 -07:00
Spike
bb5f2674d1
Merge branch 'master' into feature/fixed-navbar 2023-01-16 19:43:54 -08:00
Matthew Esposito
3d0287f04f
Add comment count in post (#659)
* Add comment count in post

* Restyle comment count
2023-01-16 12:05:53 -08:00
potatoesAreGod
eb9ef9f6d9
added leaving reddit dialog (#643) 2023-01-12 01:46:56 -07:00
Matthew E
799e5b882b
Merge pull request #667 from erdnaxe/scrollbar_theme 2023-01-03 19:34:40 -05:00
Daniel Valentine
c83a4e0cc8
Landing page for NSFW content, SFW-only mode (#656)
Co-authored-by: Matt <matt@matthew.science>
Co-authored-by: Spike <19519553+spikecodes@users.noreply.github.com>
2023-01-03 02:39:45 -07:00
Rupert Angermeier
9178b50b73
fix a11y and HTML issues on settings page (#662)
- connect labels with corresponding form controls
- use fieldsets to group form sections
- don't nest details/summary element into label
2023-01-01 01:56:09 -07:00
Alexandre Iooss
1fa9f27619 Theme browser scrollbar
Hint current color-scheme to the browser. This enables chromium-based
browsers to change the scrollbar color according to the current theme.
2022-12-26 22:57:04 +01:00
Daniel Valentine
e579b97442
List post duplicates (resolves #574). 2022-12-03 01:08:36 -07:00
laazyCmd
92f5286667 Make the column size in posts consistent.
Signed-off-by: Daniel Valentine <Daniel-Valentine@users.noreply.github.com>
2022-11-30 21:06:21 -07:00
Lena
40dfddc44d
Added gruvbox-dark and gruvbox-light themes (#490) 2022-11-20 13:49:20 -07:00
NKIPSC
e62d33ccae Blur NSFW posts.
Reimplementation of libreddit/libreddit#482.

Co-authored by: Daniel Valentine <Daniel-Valentine@users.noreply.github.com>
2022-11-08 09:01:12 -07:00
Daniel Valentine
584cd4aac1
Add DoomOne theme, c/o Tildemaster <root@vern.cc> (#611) 2022-11-03 23:08:03 -06:00
spikecodes
c0e37443ae
Allow the spoilering of links (fixes #610) 2022-11-03 21:30:35 -07:00
Spike
8435b8eab9
Update hls.js.min to v1.2.4
Mirrors ferritreader/ferrit#6
2022-11-02 08:46:59 -07:00
spikecodes
510c8679d6
Show full "Submissions" btn on mobile (fixes #548) 2022-11-01 21:59:16 -07:00
Connor Holloway
6c202a59b0 Make the fixed navbar optional
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.
2022-06-18 22:53:30 +01:00
spikecodes
5f20e8ee27
Fix dark theme hidden in settings 2022-05-28 19:55:13 -07:00
spikecodes
7e07ca3df1
Fix #480 2022-05-20 21:26:53 -07:00
mikupls
60c7b6b23f
Embed css themes to simplify adding and testing new themes (#489) 2022-05-21 01:41:31 +00:00
Kieran
8c94c0dd17
Let native elements use theme accent colour (#509) 2022-05-15 19:56:25 +00:00
spikecodes
47ab857103
Scroll overflowing tables (fixes #469) 2022-04-02 21:24:20 -07:00
mikupls
3a1af78e26
Wrap long post urls. (#462) 2022-03-26 19:55:53 +00:00
spikecodes
59043456ba
Wrap long post titles (fixes #435) 2022-03-13 12:59:15 -07:00
Nick Lowery
70ff150ab4
Add user listing buttons (#400)
* Add user listing buttons

* Update to v0.22

Co-authored-by: spikecodes <19519553+spikecodes@users.noreply.github.com>
2022-03-13 19:06:27 +00:00
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