Skip to content
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

Support very large processed jobs numbers #72

Open
kraih opened this issue May 28, 2018 · 6 comments
Open

Support very large processed jobs numbers #72

kraih opened this issue May 28, 2018 · 6 comments

Comments

@kraih
Copy link
Member

kraih commented May 28, 2018

We need to shorten the number at some point, or it will overflow in the admin ui.

screen shot 2018-05-28 at 16 24 36

Perhaps something like 123456K and 123456M would be enough for now.

@yusrideb
Copy link

yusrideb commented Aug 9, 2018

IMO, tooltip from bootstrap can be use.
10266 can become 10k and 10266 will be displayed by tooltip.

@kraih
Copy link
Member Author

kraih commented Feb 3, 2019

Using a tooltip to show the full number seems like a good idea, lets do that.

@kraih kraih closed this as completed in 4d685f2 Feb 3, 2019
@kraih
Copy link
Member Author

kraih commented Feb 3, 2019

I went with a very pragmatic solution for now.
screenshot 2019-02-04 at 00 06 38

@kraih kraih reopened this Feb 3, 2019
@kraih
Copy link
Member Author

kraih commented Feb 3, 2019

Actually, i had to revert that, since Bootstrap tooltips are not easily updated.

@christopherraa
Copy link
Member

christopherraa commented Jan 22, 2021

How about using a library like Humanize?

Humanize.compactInteger(123456789, 1)
// "123.5M"

It hasn't been updated in a while, but seems to do what it says on the tin.

@akarelas
Copy link

Here's an option: https://css-tricks.com/fitting-text-to-a-container/

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

No branches or pull requests

4 participants