Object Fit of Avatars on Details view causes portrait images to stretch #5041
Unanswered
SlyDave
asked this question in
Ideas & Feature Requests
Replies: 2 comments
-
This is a natural extension and consequence of #4930 and all its discussion points also hold true here. I believe that for searchable content, the object-fit of displayed avatars should also be cover, double so if aspect is Square |
Beta Was this translation helpful? Give feedback.
0 replies
-
I assume issues being moved out of the issue tracker into discussions is one way to allow an issue to be ignored and die... /sigh |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Description:
Avatar's object-fit is incorrect and warps images when viewed on Details of a resource.
There is no way to change the class or add style to the FileField.vue/ImageLoader.vue component to correct this.
Detailed steps to reproduce the issue on a fresh Nova installation:
Looking at the top of the 2 avatars in the screenshot you can see the object fit is the default, undefined value of

fill
, resulting in a stretched image.Here I've used inspection tools to change the object-fit to

cover
I believe the default for avatars should be
cover
, or at the very least this should be optional, as is the aspect ratio.The field in use above is defined as:
Beta Was this translation helpful? Give feedback.
All reactions