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

Wrap reaction avatars to avoid "CSS IS AWESร˜ME" #2904

Merged
merged 3 commits into from Mar 22, 2020

Conversation

fregante
Copy link
Member

@fregante fregante commented Mar 20, 2020

Fixes #1744

  • Issues are now responsive, we can't use previous JS solutions that only run on load
  • CSS Grid doesn't allow automatic wrap
  • CSS flex-grow can't be used because if there's a 1-avatar reaction on the second line, it will be stretched along the whole line, making it huge

Demos from facebook/react#13525

Some aren't great, but that's just how it is ๐Ÿคทโ€โ™‚๏ธ

Screen Shot 2020-03-20 at 11 37 12

Screen Shot 2020-03-20 at 11 37 40

Screen Shot 2020-03-20 at 11 37 20

Screen Shot 2020-03-20 at 11 38 01

Screen Shot 2020-03-20 at 11 38 29


IssueHunt Summary

Referenced issues

This pull request has been submitted to:


IssueHunt has been backed by the following sponsors. Become a sponsor

@fregante fregante added the bug label Mar 20, 2020
@fregante fregante merged commit 236d643 into master Mar 22, 2020
@fregante fregante deleted the wrap-reaction-avatars branch March 22, 2020 21:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

Reactions container stretches beyond width of comment area
1 participant