Skip to content

Use 2x image source for avatars

What does this MR do and why?

This re-addresses a previous MR that used a fixed 48px image source size for avatars smaller than 48x48. There are other avatar sizes, notably 40x40, that still require a larger source image. It's easier to just use a 2x source image when the avatar is small instead of using a fixed size when the avatar is below a certain dimension.

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

Before After
image image

How to set up and validate locally

  1. Check out this branch on your GDK
  2. Navigate to http://gdk.test:3000/search?scope=users and search for a user who you know has an avatar image (not a gravatar)
  3. You should see that in the search results, any user with a real avatar image does not have a blurry avatar

Related to #452522 (closed), #425467 (closed)

Edited by Chad Lavimoniere

Merge request reports