-
Notifications
You must be signed in to change notification settings - Fork 71
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
Move information to the sidebar, enforce max width #447
Changes from 1 commit
3e91fa1
c106720
e980ce1
56adb99
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ function PluginReadableInstalls({currentInstalls}) { | |
if (!currentInstalls) { | ||
return <>No usage data available</>; | ||
} | ||
return <>{currentInstalls}</>; | ||
return <>{new Intl.NumberFormat('en-US').format(currentInstalls)}</>; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I've never used this util. If you specify the format does it only do it for us style numbers? Is possible to let the browser pick the locale? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If we omit the locale name, the browser locale will be used. But when formatting dates we are also using US locale and almost all the texts are in English, so I thought this is more consistent. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Oh yea totally a good plan. I was just curious how it worked. I think I started separating dates into its own components for that reason, so we could eventually fix it. I just didn't go far enough |
||
} | ||
|
||
PluginReadableInstalls.propTypes = { | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This can be done much more simply if we're getting rid of the Y axis labels, as the only thing this seems to accomplish having no weird (non-even, differently spaces) outlier as the max Y value.
Just use
maxValue*1.2
or so as themax
?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed in the last commit.