-
Notifications
You must be signed in to change notification settings - Fork 10
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
[Jupiter] Bad proportions for thumbnail css in search results #661
Comments
This problem exists in the main item page as well as in search results. |
Confirmed with @leahvanderjagt and @abombak that the views (both search and item view) should:
|
So "out of proportion" is defined as having the short dimension < 270 when the long dimension is converted to 350? And cropping should be centered? |
it would be more like
The maximum dimension of the thumbnail would be 175x135 instead of a square of 150x150. I hope this makes sense? |
Update this file: https://github.com/ualbertalib/jupiter/blob/master/app/assets/stylesheets/image.scss#L2-L3 |
I found an alternate solution. https://developer.mozilla.org/en-US/docs/Web/CSS/object-fit |
Might have to be careful with this approach? Looks like this doesn't work on IE11 and Some Edge (<15) versions 😢 . Which might be a fair amount of users? (From looking at google analytics it looks like since jupiter launched we get about 5.8% of users using IE and 3.8% using Edge (good news is 75% of edge users are on the higher supported versions), so that's almost 8% of our user base?) |
Thanks for that. Used the solution provided. |
Landscape-mode thumbnail are displayed with their true proportions, but portrait-mode ones are squashed to a square. Presumably we want them to appear in their true proportions.
Thumbnail:
Screenshot of search results:
The text was updated successfully, but these errors were encountered: