Fix private calls

This commit is contained in:
2026-05-17 15:14:52 +02:00
parent 0f6cb3ee77
commit e769a6ee4a
71 changed files with 5821 additions and 349 deletions

View File

@@ -0,0 +1,33 @@
import { Component, input } from '@angular/core';
import { CommonModule } from '@angular/common';
import { NgIcon, provideIcons } from '@ng-icons/core';
import { lucideWifiOff } from '@ng-icons/lucide';
import type { User } from '../../shared-kernel';
@Component({
selector: 'app-private-call-participant-card',
standalone: true,
imports: [CommonModule, NgIcon],
viewProviders: [provideIcons({ lucideWifiOff })],
host: { class: 'block min-w-0' },
templateUrl: './private-call-participant-card.component.html'
})
export class PrivateCallParticipantCardComponent {
readonly user = input.required<User>();
readonly connected = input.required<boolean>();
readonly speaking = input.required<boolean>();
readonly issueLabel = input<string | null>(null);
readonly compact = input(false);
avatarSize(): string {
return this.compact() ? '5rem' : 'clamp(4.25rem, 22vw, 10rem)';
}
avatarSizeSm(): string {
return this.compact() ? '6rem' : this.avatarSize();
}
participantInitial(): string {
return this.user().displayName.charAt(0).toUpperCase() || '?';
}
}