Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Fix: Placeholder user avatar rendering (#9216)

Wieland Lindenthal73fd22479df4
diff --git a/frontend/src/app/modules/principal/principal-renderer.service.ts b/frontend/src/app/modules/principal/principal-renderer.service.ts
index 41079dbc557..96abcb54e54 100644
--- a/frontend/src/app/modules/principal/principal-renderer.service.ts
+++ b/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') {