mirror of https://github.com/OpenVidu/openvidu.git
ov-components: add conditional rendering for letter display in avatar profile
parent
488811f132
commit
5d9dbc114b
|
@ -8,9 +8,11 @@ import { Component, Input } from '@angular/core';
|
||||||
selector: 'ov-avatar-profile',
|
selector: 'ov-avatar-profile',
|
||||||
template: `
|
template: `
|
||||||
<div class="poster" id="video-poster">
|
<div class="poster" id="video-poster">
|
||||||
<div class="initial" [ngStyle]="{ 'background-color': color }">
|
@if (letter) {
|
||||||
<span id="poster-text">{{ letter }}</span>
|
<div class="initial" [ngStyle]="{ 'background-color': color }">
|
||||||
</div>
|
<span id="poster-text">{{ letter }}</span>
|
||||||
|
</div>
|
||||||
|
}
|
||||||
</div>
|
</div>
|
||||||
`,
|
`,
|
||||||
styleUrls: ['./avatar-profile.component.scss'],
|
styleUrls: ['./avatar-profile.component.scss'],
|
||||||
|
|
Loading…
Reference in New Issue