Fix: Placeholder user avatar rendering (#9216)

pull/9221/head
Wieland Lindenthal 4 years ago committed by GitHub
parent 455b10fdb4
commit 73fd22479d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      frontend/src/app/modules/principal/principal-renderer.service.ts

@ -92,7 +92,13 @@ export class PrincipalRendererService {
fallback.classList.add(`op-avatar_${type.replace('_', '-')}`);
fallback.classList.add('op-avatar--fallback');
fallback.textContent = userInitials;
fallback.style.background = colorCode;
if (type === "placeholder_user") {
fallback.style.color = colorCode;
fallback.style.borderColor = colorCode;
} else {
fallback.style.background = colorCode;
}
// Image avatars are only supported for users
if (type === 'user') {

Loading…
Cancel
Save