From 3da68f0a781ebd893521e2e6fa200280c92ae815 Mon Sep 17 00:00:00 2001 From: Rigel Kent Date: Tue, 26 Jan 2021 01:53:13 +0100 Subject: add default trending page choice, revert comments count for hot strategy --- .../shared/shared-video-miniature/abstract-video-list.scss | 2 +- .../shared-video-miniature/video-list-header.component.html | 5 +++++ .../shared-video-miniature/video-list-header.component.ts | 12 ++++-------- 3 files changed, 10 insertions(+), 9 deletions(-) create mode 100644 client/src/app/shared/shared-video-miniature/video-list-header.component.html (limited to 'client/src/app/shared/shared-video-miniature') diff --git a/client/src/app/shared/shared-video-miniature/abstract-video-list.scss b/client/src/app/shared/shared-video-miniature/abstract-video-list.scss index 2eaf0dc70..0a8aa8fa4 100644 --- a/client/src/app/shared/shared-video-miniature/abstract-video-list.scss +++ b/client/src/app/shared/shared-video-miniature/abstract-video-list.scss @@ -5,7 +5,7 @@ $iconSize: 16px; -::ng-deep .title-page.title-page-single { +::ng-deep my-video-list-header { display: flex; flex-grow: 1; } diff --git a/client/src/app/shared/shared-video-miniature/video-list-header.component.html b/client/src/app/shared/shared-video-miniature/video-list-header.component.html new file mode 100644 index 000000000..58db437b8 --- /dev/null +++ b/client/src/app/shared/shared-video-miniature/video-list-header.component.html @@ -0,0 +1,5 @@ +

+
+ {{ data.titlePage }} +
+

\ No newline at end of file diff --git a/client/src/app/shared/shared-video-miniature/video-list-header.component.ts b/client/src/app/shared/shared-video-miniature/video-list-header.component.ts index a07248b96..67bbf7d7a 100644 --- a/client/src/app/shared/shared-video-miniature/video-list-header.component.ts +++ b/client/src/app/shared/shared-video-miniature/video-list-header.component.ts @@ -1,17 +1,13 @@ -import { Component, Inject } from '@angular/core' +import { Component, Inject, ViewEncapsulation } from '@angular/core' export abstract class GenericHeaderComponent { constructor (@Inject('data') public data: any) {} } @Component({ - selector: 'h1', - host: { 'class': 'title-page title-page-single' }, - template: ` -
- {{ data.titlePage }} -
- ` + selector: 'my-video-list-header', + encapsulation: ViewEncapsulation.None, + templateUrl: './video-list-header.component.html' }) export class VideoListHeaderComponent extends GenericHeaderComponent { constructor (@Inject('data') public data: any) { -- cgit v1.2.3