ActivityPub-federated video streaming platform using P2P directly in your web browser
Fix pagination when videos take all the width
Chocobozzz1ff8d7d6314b
diff --git a/client/src/app/shared/video/abstract-video-list.html b/client/src/app/shared/video/abstract-video-list.htmlindex fb7f868528..94a38019de 100644--- a/client/src/app/shared/video/abstract-video-list.html+++ b/client/src/app/shared/video/abstract-video-list.html@@ -9,7 +9,7 @@myInfiniteScroller[pageHeight]="pageHeight"(nearOfTop)="onNearOfTop()" (nearOfBottom)="onNearOfBottom()" (pageChanged)="onPageChanged($event)"- class="videos" #videoElement+ class="videos" #videosElement><div *ngFor="let videos of videoPages" class="videos-page"><my-video-miniaturediff --git a/client/src/app/shared/video/abstract-video-list.ts b/client/src/app/shared/video/abstract-video-list.tsindex 4a220c93d2..c3543cfaae 100644--- a/client/src/app/shared/video/abstract-video-list.ts+++ b/client/src/app/shared/video/abstract-video-list.ts@@ -15,7 +15,7 @@ import { Video } from './video.model'export abstract class AbstractVideoList implements OnInit, OnDestroy {private static LINES_PER_PAGE = 3- @ViewChild('videoElement') videosElement: ElementRef+ @ViewChild('videosElement') videosElement: ElementRef@ViewChild(InfiniteScrollerDirective) infiniteScroller: InfiniteScrollerDirectivepagination: ComponentPagination = {@@ -183,6 +183,8 @@ export abstract class AbstractVideoList implements OnInit, OnDestroy {// Video takes all the widththis.videoWidth = -1+ // Same ratios than base width/height+ this.videoHeight = this.videosElement.nativeElement.offsetWidth * (this.baseVideoHeight / this.baseVideoWidth)this.pageHeight = this.pagination.itemsPerPage * this.videoHeight} else {this.videoWidth = this.baseVideoWidth