Closed Bug 1101981 Opened 10 years ago Closed 7 years ago

Moderator should use "object-fit: cover" for profile photos displayed next to questions

Categories

(Participation Infrastructure Graveyard :: Moderator, defect)

x86_64
Linux
defect
Not set
normal

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.)
"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).
Attachment #8525658 - Attachment description: screenshot of how profile images currently render on moderator → screenshot of how tall profile images currently render on moderator
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)
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.
Looks like this general issue is tracked at https://github.com/mozilla/mozmoderator/issues/70 -- I added a note there.
Product: Participation Infrastructure → Participation Infrastructure Graveyard
Closing due to bug 1325337.
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: