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

Fix rectangular avatars getting stretched #2782

Merged
merged 1 commit into from
May 25, 2022

Conversation

sambartik
Copy link
Contributor

Description

Currently the aspect ratio of profile pictures in dropdown is not being preserved, resulting in pictures looking "squished". Adding object-fit: cover; to the image element fixes this (caniuse.).

Screenshot (if UI-related)

Before:
Before

After:
After

To-Dos

  • Successful build yarn build

Issues Fixed or Closed

No prior issue

@TheCatLady
Copy link
Collaborator

Good catch! Use of the object-cover Tailwind class would be better than defining styles on each element, however.

@sambartik
Copy link
Contributor Author

Good catch! Use of the object-cover Tailwind class would be better than defining styles on each element, however.

Didn't know, thanks for that! I'll change to that.

@sambartik
Copy link
Contributor Author

It should be okay now.

Copy link
Collaborator

@danshilm danshilm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@danshilm
Copy link
Collaborator

@all-contributors add @sambartik for code

@allcontributors
Copy link
Contributor

@danshilm

I've put up a pull request to add @sambartik! 🎉

@github-actions
Copy link

🎉 This PR is included in version 1.30.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

None yet

3 participants