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

Show more than three Avatars for Reactions #644

Merged
merged 5 commits into from Jul 27, 2017
Merged

Conversation

fregante
Copy link
Member

@fregante fregante commented Jul 26, 2017

Fixes #240

Testable on babel/babel#3646

more than 3 avatars

Still limited and compressed when they don't fit:

lots of avatars

Since this is now in JS, limited avatars won't be loaded at all (contrary to what happened before)

@fregante
Copy link
Member Author

Also fixes this bug (selector was broken and was hiding more avatars than necessary):

That’s like a 30x size decrease!
@fregante
Copy link
Member Author

Loading 460x460 images bothered me, so thanks to this we load 40x40 or 20x20 images: https://stackoverflow.com/a/36380674/288906

@sindresorhus
Copy link
Member

Looks good. Another issue to test it with: facebook/react#10191

@sindresorhus sindresorhus merged commit 40653f3 into master Jul 27, 2017
@sindresorhus sindresorhus deleted the all-the-musketeers branch July 27, 2017 09:48
@fregante
Copy link
Member Author

Excellent testbed. I already found a line that wraps:

screen shot 2017-07-27 at 17 58 39

Also this thread on hover facebook/react#8854

screen shot 2017-07-27 at 18 05 30

@fregante fregante mentioned this pull request Jul 27, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

None yet

2 participants