Fix account channel overflow
This commit is contained in:
parent
fcf4569f2d
commit
fff77ba231
|
@ -15,7 +15,11 @@
|
|||
<my-subscribe-button [videoChannel]="videoChannel"></my-subscribe-button>
|
||||
</div>
|
||||
|
||||
<my-video-miniature *ngFor="let video of getVideosOf(videoChannel)" [video]="video" [user]="user" [displayVideoActions]="false"></my-video-miniature>
|
||||
<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>
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -79,7 +79,7 @@ export class AccountVideoChannelsComponent implements OnInit, OnDestroy {
|
|||
}
|
||||
|
||||
getVideosOf (videoChannel: VideoChannel) {
|
||||
return this.videos[ videoChannel.id ] || []
|
||||
return this.videos[ videoChannel.id ]
|
||||
}
|
||||
|
||||
onNearOfBottom () {
|
||||
|
|
Loading…
Reference in New Issue