Skip to content

Changed `author_avatar` to inline-block class

What does this MR do?

Since I encountered the problem of strange distorted avatars in the commitview, I went ahead and checked how this strange behaviour can be eliminated.
author_avatar utilized d-sm-inline as css_class, but with d-sm-inline-block the behaviour is as expected and described in #64746 (closed).

This MR can be seen as proof-of-concept for further discussion. I sure can think of better ways to implement this instead of doing an hardcoded change. But probably the d-sm-inline class is not needed for the avatars anymore.

Screenshots taken from gitlab-development-kit example project

before after
Bildschirmfoto_2019-07-18_um_16.04.05-fs8 Bildschirmfoto_2019-07-19_um_11.24.51-fs8

The underlying problem can be encountered for example by blocking acces to gravatar and visiting https://gitlab.com/gitlab-org/gitlab-ce/commit/f3ce7a37a4aa00c0af614757087b6536c9ef701f Bildschirmfoto_2019-07-19_um_11.27.39-fs8.

Does this MR meet the acceptance criteria?

Conformity

Performance and testing

Security

If this MR contains changes to processing or storing of credentials or tokens, authorization and authentication methods and other items described in the security review guidelines:

  • Label as security and @ mention @gitlab-com/gl-security/appsec
  • The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • Security reports checked/validated by a reviewer from the AppSec team

Closes #64746 (closed)

Edited by Marc Schwede

Merge request reports