add game icon to game bar item

This commit is contained in:
cyber-dream 2022-10-18 17:58:32 +03:00
parent 1e84726bc5
commit 3b2655cc83

View File

@ -1,3 +1,22 @@
<div class="game" [ngClass]="{'active': active}">
<!-- <div class="game" [ngClass]="{'active': active}">
<div class="game-title">{{game.title}}</div>
</div>
</div> -->
<ng-template #icon>
<tui-avatar
size="xs"
[rounded]="true"
[avatarUrl]="'./assets/games-icons/' + game.image"
></tui-avatar>
</ng-template>
<button
tuiButton
type="button"
appearance="primary"
[icon]="icon"
class="tui-space_right-3 tui-space_bottom-3"
class="game"
[ngClass]="{'active': active}"
>
{{game.title}}
<ng-content></ng-content>