From 8b5c8cd1e52d685de65942a08cdda16eb0bf8b33 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 29 Apr 2021 09:10:57 +0200 Subject: Fix actor avatar background --- client/src/app/shared/shared-actor-image/actor-avatar.component.html | 4 ++-- client/src/app/shared/shared-actor-image/actor-avatar.component.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'client/src/app') diff --git a/client/src/app/shared/shared-actor-image/actor-avatar.component.html b/client/src/app/shared/shared-actor-image/actor-avatar.component.html index 607f28e5b..13a5385a8 100644 --- a/client/src/app/shared/shared-actor-image/actor-avatar.component.html +++ b/client/src/app/shared/shared-actor-image/actor-avatar.component.html @@ -1,7 +1,7 @@ - + -
+
{{ initial }}
diff --git a/client/src/app/shared/shared-actor-image/actor-avatar.component.ts b/client/src/app/shared/shared-actor-image/actor-avatar.component.ts index 71e020cba..e4efbe475 100644 --- a/client/src/app/shared/shared-actor-image/actor-avatar.component.ts +++ b/client/src/app/shared/shared-actor-image/actor-avatar.component.ts @@ -48,7 +48,7 @@ export class ActorAvatarComponent { return '' } - get class () { + getClass (type: 'avatar' | 'initial') { const base = [ 'avatar' ] if (this.size) base.push(`avatar-${this.size}`) @@ -56,7 +56,7 @@ export class ActorAvatarComponent { if (this.account) base.push('account') else base.push('channel') - if (this.initial) { + if (type === 'initial' && this.initial) { base.push('initial') base.push(this.getColorTheme()) } -- cgit v1.2.3