-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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 the shaking issue for avatars with an aspect ratio that is not 1:1. #32604
base: main
Are you sure you want to change the base?
Conversation
Hmm I'm not sure about those changes. Would like to know why it resizes in first place as I thought |
https://upload.wikimedia.org/wikipedia/en/3/3d/Longcat_is_loooooooooong.jpg |
https://demo.gitea.com/kerwin612 |
I can reproduce it. So something has changed from 686 to 705. And if you open the dev tool, then refresh the page, even in 705 it will not shake. |
As it works in 686, and the removed lines in this PR are not newly added codes, so I guess there's other reasons caused it. |
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.
I do not think this change is right if you haven't really understood the problem.
Even without the "real" problem, is it clear about: why the width
could be remove? What if there is an avatar with width=2000 and height=100?
before:
after: