mirror of https://github.com/Chocobozzz/PeerTube
Fix account channel overflow
parent
fcf4569f2d
commit
fff77ba231
|
@ -15,7 +15,11 @@
|
||||||
<my-subscribe-button [videoChannel]="videoChannel"></my-subscribe-button>
|
<my-subscribe-button [videoChannel]="videoChannel"></my-subscribe-button>
|
||||||
</div>
|
</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>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -9,9 +9,20 @@
|
||||||
.section {
|
.section {
|
||||||
@include miniature-rows;
|
@include miniature-rows;
|
||||||
|
|
||||||
|
overflow: visible; // For the subscribe dropdown
|
||||||
padding-top: 0 !important;
|
padding-top: 0 !important;
|
||||||
|
|
||||||
.section-title {
|
.section-title {
|
||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.videos {
|
||||||
|
overflow: hidden;
|
||||||
|
|
||||||
|
.no-results {
|
||||||
|
height: 50px;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -79,7 +79,7 @@ export class AccountVideoChannelsComponent implements OnInit, OnDestroy {
|
||||||
}
|
}
|
||||||
|
|
||||||
getVideosOf (videoChannel: VideoChannel) {
|
getVideosOf (videoChannel: VideoChannel) {
|
||||||
return this.videos[ videoChannel.id ] || []
|
return this.videos[ videoChannel.id ]
|
||||||
}
|
}
|
||||||
|
|
||||||
onNearOfBottom () {
|
onNearOfBottom () {
|
||||||
|
|
Loading…
Reference in New Issue