Fix account channel overflow

pull/1902/head
Chocobozzz 2019-06-11 11:28:26 +02:00
parent fcf4569f2d
commit fff77ba231
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
3 changed files with 17 additions and 2 deletions

View File

@ -15,7 +15,11 @@
<my-subscribe-button [videoChannel]="videoChannel"></my-subscribe-button>
</div>
<div *ngIf="getVideosOf(videoChannel)" class="videos">
<div class="no-results" i18n *ngIf="getVideosOf(videoChannel).length === 0">This channel does not have videos.</div>
<my-video-miniature *ngFor="let video of getVideosOf(videoChannel)" [video]="video" [user]="user" [displayVideoActions]="false"></my-video-miniature>
</div>
</div>
</div>
</div>

View File

@ -9,9 +9,20 @@
.section {
@include miniature-rows;
overflow: visible; // For the subscribe dropdown
padding-top: 0 !important;
.section-title {
align-items: center;
}
.videos {
overflow: hidden;
.no-results {
height: 50px;
}
}
}

View File

@ -79,7 +79,7 @@ export class AccountVideoChannelsComponent implements OnInit, OnDestroy {
}
getVideosOf (videoChannel: VideoChannel) {
return this.videos[ videoChannel.id ] || []
return this.videos[ videoChannel.id ]
}
onNearOfBottom () {