Skip to content

Update core.js - Badge counter >999 #285

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Sep 4, 2024
Merged

Update core.js - Badge counter >999 #285

merged 2 commits into from
Sep 4, 2024

Conversation

thereddestdog
Copy link
Contributor

Since the browser chrome is only wide enough for 3 chars, update the counter so that unreadfeeds count of >999 will show as "1k+"

My very first PR, hope I'm doing it right! Also not that familiar with javascript and I can't test this so..

thereddestdog and others added 2 commits September 3, 2024 18:21
Since the browser chrome is only wide enough for 3 chars, update the counter so that unreadfeeds count of >999 will show as "1k+"
@olsh
Copy link
Owner

olsh commented Sep 4, 2024

Hi, @thereddestdog,

I made a few small changes to your code to account for situations where someone might have more than 1,000 unread articles.

Thank you again for your contribution!

@olsh olsh merged commit 0da06b8 into olsh:master Sep 4, 2024
7 checks passed
@thereddestdog
Copy link
Contributor Author

@olsh Thank you! Glad to help

@olsh
Copy link
Owner

olsh commented Sep 4, 2024

Please note that we can release the code when #281 is fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants