-
Notifications
You must be signed in to change notification settings - Fork 903
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
Improve contributorlist.jsx and zones.json #4081
Improve contributorlist.jsx and zones.json #4081
Conversation
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.
Makes sense - and I hope all new contributors will understand how to add their username :)
srcSet={`https://avatars.githubusercontent.com/${contributor}?s=40 2x`} // loads the avatar image at a default size of 40px for high resolution displays | ||
alt={contributor} | ||
height="20px" | ||
width="20px" |
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.
Are you sure using px
in these attributes is allowed?
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.
Oh crap you are right, according to MDN they are supposed to be without units...
It works just fine with for me with units in Firefox and Chrome though but might be best to change it.
In this PR:
https://github.com/
prefix from the contributors inzone.json
.contributorlist.jsx
component to handle the newzone.json
changes.contributorlist.jsx
like lazy loading and adding srcset.This will reduce the main bundle size and give users a better overall experience.