diff options
author | Chocobozzz <me@florianbigard.com> | 2018-02-09 09:30:37 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-02-09 09:30:37 +0100 |
commit | 3290f37c76784f1b96cefb5d389e48db56033b0a (patch) | |
tree | f383d1ea4ca666ac976c80c9a1277edd2ef0ef7e /client/src/app/shared/video/abstract-video-list.ts | |
parent | 7193ad1044d2dfad8f929f0951f9a3601c056f67 (diff) | |
download | PeerTube-3290f37c76784f1b96cefb5d389e48db56033b0a.tar.gz PeerTube-3290f37c76784f1b96cefb5d389e48db56033b0a.tar.zst PeerTube-3290f37c76784f1b96cefb5d389e48db56033b0a.zip |
Video previews take all the width on mobile
Diffstat (limited to 'client/src/app/shared/video/abstract-video-list.ts')
-rw-r--r-- | client/src/app/shared/video/abstract-video-list.ts | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/client/src/app/shared/video/abstract-video-list.ts b/client/src/app/shared/video/abstract-video-list.ts index bf0827207..a25fc532c 100644 --- a/client/src/app/shared/video/abstract-video-list.ts +++ b/client/src/app/shared/video/abstract-video-list.ts | |||
@@ -1,5 +1,6 @@ | |||
1 | import { OnInit } from '@angular/core' | 1 | import { OnInit } from '@angular/core' |
2 | import { ActivatedRoute, Router } from '@angular/router' | 2 | import { ActivatedRoute, Router } from '@angular/router' |
3 | import { isInMobileView, isInSmallView } from '@app/shared/misc/utils' | ||
3 | import { NotificationsService } from 'angular2-notifications' | 4 | import { NotificationsService } from 'angular2-notifications' |
4 | import { Observable } from 'rxjs/Observable' | 5 | import { Observable } from 'rxjs/Observable' |
5 | import { AuthService } from '../../core/auth' | 6 | import { AuthService } from '../../core/auth' |
@@ -42,6 +43,10 @@ export abstract class AbstractVideoList implements OnInit { | |||
42 | const routeParams = this.route.snapshot.params | 43 | const routeParams = this.route.snapshot.params |
43 | this.loadRouteParams(routeParams) | 44 | this.loadRouteParams(routeParams) |
44 | 45 | ||
46 | if (isInMobileView()) { | ||
47 | this.pagination.itemsPerPage = 5 | ||
48 | } | ||
49 | |||
45 | if (this.loadOnInit === true) this.loadMoreVideos('after') | 50 | if (this.loadOnInit === true) this.loadMoreVideos('after') |
46 | } | 51 | } |
47 | 52 | ||