style: imrpove rendering of large channel logos

This commit is contained in:
4gray committed 2022-01-09 02:46:40 +01:00
1 parent 75b38824e3
commit 7af688358c
2 files changed
+12 -6

No files matched your search

@@ -34,12 +34,13 @@
[class.active]="selected?.id === channel.id"
(click)="selectChannel(channel)"
>
<img
[src]="channel.tvg.logo"
*ngIf="channel.tvg.logo"
width="48"
onerror="this.style.display='none'"
/>
<div class="channel-logo" *ngIf="channel.tvg.logo">
<img
[src]="channel.tvg.logo"
width="48"
onerror="this.style.display='none'"
/>
</div>
<p matLine class="channel-name">
{{
i + 1 + '. ' + channel?.name ||
@@ -21,6 +21,11 @@
border-radius: 4px;
}
.channel-logo {
height: 48px;
overflow: hidden;
}
::ng-deep .dark-theme {
.search-bar {
background: #666;