aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/videos/video-list/shared/abstract-video-list.html
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2017-12-01 16:17:32 +0100
committerChocobozzz <florian.bigard@gmail.com>2017-12-01 16:17:32 +0100
commit2bbb34127fccd187ed690949b6791e49fdd77194 (patch)
treed9ebcc72ab5e1d439f08e73881dc62baecb3bc36 /client/src/app/videos/video-list/shared/abstract-video-list.html
parent9bf9d2a5c223bf006496ae7adf0c0bd7a7975108 (diff)
downloadPeerTube-2bbb34127fccd187ed690949b6791e49fdd77194.tar.gz
PeerTube-2bbb34127fccd187ed690949b6791e49fdd77194.tar.zst
PeerTube-2bbb34127fccd187ed690949b6791e49fdd77194.zip
Add auto scroll to videos list
Diffstat (limited to 'client/src/app/videos/video-list/shared/abstract-video-list.html')
-rw-r--r--client/src/app/videos/video-list/shared/abstract-video-list.html14
1 files changed, 8 insertions, 6 deletions
diff --git a/client/src/app/videos/video-list/shared/abstract-video-list.html b/client/src/app/videos/video-list/shared/abstract-video-list.html
index ab5530e68..69e16319e 100644
--- a/client/src/app/videos/video-list/shared/abstract-video-list.html
+++ b/client/src/app/videos/video-list/shared/abstract-video-list.html
@@ -2,15 +2,17 @@
2 {{ titlePage }} 2 {{ titlePage }}
3</div> 3</div>
4 4
5<div class="videos-miniatures"> 5<div
6 class="videos-miniatures"
7 infiniteScroll
8 [infiniteScrollUpDistance]="1.5"
9 [infiniteScrollDistance]="0.5"
10 (scrolled)="onNearOfBottom()"
11 (scrolledUp)="onNearOfTop()"
12>
6 <my-video-miniature 13 <my-video-miniature
7 class="ng-animate" 14 class="ng-animate"
8 *ngFor="let video of videos" [video]="video" [user]="user" [currentSort]="sort" 15 *ngFor="let video of videos" [video]="video" [user]="user" [currentSort]="sort"
9 > 16 >
10 </my-video-miniature> 17 </my-video-miniature>
11</div> 18</div>
12
13<pagination *ngIf="pagination.totalItems !== null && pagination.totalItems !== 0"
14 [totalItems]="pagination.totalItems" [itemsPerPage]="pagination.itemsPerPage" [maxSize]="6" [boundaryLinks]="true" [rotate]="false"
15 [(ngModel)]="pagination.currentPage" (pageChanged)="onPageChanged($event)"
16></pagination>