Closed
Bug 1101981
Opened 10 years ago
Closed 8 years ago
Moderator should use "object-fit: cover" for profile photos displayed next to questions
Categories
(Participation Infrastructure Graveyard :: Moderator, defect)
Tracking
(Not tracked)
RESOLVED
WONTFIX
People
(Reporter: dholbert, Unassigned)
References
Details
Attachments
(2 files)
In the profile images that Moderator displays next to users' questions, their faces may be squashed, if their profile photo is tall & skinny. (since moderator places it in a square <img> element)
"object-fit: cover" will fix this by preserving the image's aspect ratio when scaling it down.
(Note: "cover" ensures that we'll fill the <img> content-box entirely, probably with a little overflow. The overflow will be centered, due to the default value of "object-fit"; I assume a bit of overflow is fine, given that we're already forcing overflow by placing a circular clip-region over the image.)
Reporter | ||
Comment 1•10 years ago
|
||
"object-fit" support was only just recently added on Nightly, here:
https://bugzilla.mozilla.org/show_bug.cgi?id=1099450
So it's not available in non-Nightly Firefox versions yet, but it will be when that change rides the trains (and the profile-images will get better-looking, if we've fixed Moderator to take advantage of it).
Reporter | ||
Comment 2•10 years ago
|
||
Reporter | ||
Comment 3•10 years ago
|
||
Reporter | ||
Updated•10 years ago
|
Attachment #8525658 -
Attachment description: screenshot of how profile images currently render on moderator → screenshot of how tall profile images currently render on moderator
Reporter | ||
Updated•10 years ago
|
Attachment #8525658 -
Attachment description: screenshot of how tall profile images currently render on moderator → screenshot of how tall profile images currently render on moderator (squashed vertically)
Reporter | ||
Comment 4•10 years ago
|
||
Hmm, as noted in bug 1035475, it sounds like this bugzilla component isn't monitored, and I should perhaps file this at github ( https://github.com/mozilla/mozmoderator/issues/ ) instead.
Reporter | ||
Comment 5•10 years ago
|
||
Looks like this general issue is tracked at https://github.com/mozilla/mozmoderator/issues/70 -- I added a note there.
Assignee | ||
Updated•8 years ago
|
Product: Participation Infrastructure → Participation Infrastructure Graveyard
Comment 6•8 years ago
|
||
Closing due to bug 1325337.
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → WONTFIX
Reporter | ||
Comment 7•8 years ago
|
||
OK. I've now filed https://github.com/mozilla/mozmoderator/issues/164 and posted a suggested fix in https://github.com/mozilla/mozmoderator/issues/165
You need to log in
before you can comment on or make changes to this bug.
Description
•