From 6e44fb37634ce1280b5ff03e2d367f2eaa334272 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 22 Aug 2019 09:49:22 +0200 Subject: Replace "overview" by "discover" in client titles --- client/src/app/videos/videos-routing.module.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'client/src/app/videos') diff --git a/client/src/app/videos/videos-routing.module.ts b/client/src/app/videos/videos-routing.module.ts index 4eaae93cb..f0049d8c4 100644 --- a/client/src/app/videos/videos-routing.module.ts +++ b/client/src/app/videos/videos-routing.module.ts @@ -19,7 +19,7 @@ const videosRoutes: Routes = [ component: VideoOverviewComponent, data: { meta: { - title: 'Videos overview' + title: 'Discover videos' } } }, -- cgit v1.2.3 From 6eb62c33908025d877a28f1cfbc527c511ae3103 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 22 Aug 2019 13:59:54 +0200 Subject: Fix video rows overflow In discover and account channel videos pages --- client/src/app/videos/video-list/video-overview.component.html | 9 ++++++--- client/src/app/videos/video-list/video-overview.component.ts | 10 +++++++++- 2 files changed, 15 insertions(+), 4 deletions(-) (limited to 'client/src/app/videos') diff --git a/client/src/app/videos/video-list/video-overview.component.html b/client/src/app/videos/video-list/video-overview.component.html index f59de584a..5fe1f5c80 100644 --- a/client/src/app/videos/video-list/video-overview.component.html +++ b/client/src/app/videos/video-list/video-overview.component.html @@ -7,7 +7,8 @@ {{ object.category.label }} - + +
@@ -15,7 +16,8 @@ #{{ object.tag }}
- + +
@@ -27,7 +29,8 @@
- + + diff --git a/client/src/app/videos/video-list/video-overview.component.ts b/client/src/app/videos/video-list/video-overview.component.ts index 7ff52b259..4fee92d54 100644 --- a/client/src/app/videos/video-list/video-overview.component.ts +++ b/client/src/app/videos/video-list/video-overview.component.ts @@ -4,6 +4,7 @@ import { I18n } from '@ngx-translate/i18n-polyfill' import { VideosOverview } from '@app/shared/overview/videos-overview.model' import { OverviewService } from '@app/shared/overview' import { Video } from '@app/shared/video/video.model' +import { ScreenService } from '@app/shared/misc/screen.service' @Component({ selector: 'my-video-overview', @@ -22,7 +23,8 @@ export class VideoOverviewComponent implements OnInit { private i18n: I18n, private notifier: Notifier, private authService: AuthService, - private overviewService: OverviewService + private overviewService: OverviewService, + private screenService: ScreenService ) { } get user () { @@ -53,4 +55,10 @@ export class VideoOverviewComponent implements OnInit { buildVideoChannelAvatarUrl (object: { videos: Video[] }) { return object.videos[0].videoChannelAvatarUrl } + + buildVideos (videos: Video[]) { + const numberOfVideos = this.screenService.getNumberOfAvailableMiniatures() + + return videos.slice(0, numberOfVideos * 2) + } } -- cgit v1.2.3