diff options
Diffstat (limited to 'client/src/app/shared')
3 files changed, 10 insertions, 9 deletions
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 @@ | |||
5 | 5 | ||
6 | $iconSize: 16px; | 6 | $iconSize: 16px; |
7 | 7 | ||
8 | ::ng-deep .title-page.title-page-single { | 8 | ::ng-deep my-video-list-header { |
9 | display: flex; | 9 | display: flex; |
10 | flex-grow: 1; | 10 | flex-grow: 1; |
11 | } | 11 | } |
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 @@ | |||
1 | <h1 class="title-page title-page-single"> | ||
2 | <div placement="bottom" [ngbTooltip]="data.titleTooltip" container="body"> | ||
3 | {{ data.titlePage }} | ||
4 | </div> | ||
5 | </h1> \ 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 @@ | |||
1 | import { Component, Inject } from '@angular/core' | 1 | import { Component, Inject, ViewEncapsulation } from '@angular/core' |
2 | 2 | ||
3 | export abstract class GenericHeaderComponent { | 3 | export abstract class GenericHeaderComponent { |
4 | constructor (@Inject('data') public data: any) {} | 4 | constructor (@Inject('data') public data: any) {} |
5 | } | 5 | } |
6 | 6 | ||
7 | @Component({ | 7 | @Component({ |
8 | selector: 'h1', | 8 | selector: 'my-video-list-header', |
9 | host: { 'class': 'title-page title-page-single' }, | 9 | encapsulation: ViewEncapsulation.None, |
10 | template: ` | 10 | templateUrl: './video-list-header.component.html' |
11 | <div placement="bottom" [ngbTooltip]="data.titleTooltip" container="body"> | ||
12 | {{ data.titlePage }} | ||
13 | </div> | ||
14 | ` | ||
15 | }) | 11 | }) |
16 | export class VideoListHeaderComponent extends GenericHeaderComponent { | 12 | export class VideoListHeaderComponent extends GenericHeaderComponent { |
17 | constructor (@Inject('data') public data: any) { | 13 | constructor (@Inject('data') public data: any) { |