aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared
diff options
context:
space:
mode:
authorRigel Kent <sendmemail@rigelk.eu>2021-01-26 01:53:13 +0100
committerChocobozzz <chocobozzz@cpy.re>2021-01-28 15:55:34 +0100
commit3da68f0a781ebd893521e2e6fa200280c92ae815 (patch)
tree11bddf841118703c725a96851318603407fd581d /client/src/app/shared
parent28eeb811c40325a28208231324f66f4032e5cf67 (diff)
downloadPeerTube-3da68f0a781ebd893521e2e6fa200280c92ae815.tar.gz
PeerTube-3da68f0a781ebd893521e2e6fa200280c92ae815.tar.zst
PeerTube-3da68f0a781ebd893521e2e6fa200280c92ae815.zip
add default trending page choice, revert comments count for hot strategy
Diffstat (limited to 'client/src/app/shared')
-rw-r--r--client/src/app/shared/shared-video-miniature/abstract-video-list.scss2
-rw-r--r--client/src/app/shared/shared-video-miniature/video-list-header.component.html5
-rw-r--r--client/src/app/shared/shared-video-miniature/video-list-header.component.ts12
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 @@
1import { Component, Inject } from '@angular/core' 1import { Component, Inject, ViewEncapsulation } from '@angular/core'
2 2
3export abstract class GenericHeaderComponent { 3export 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})
16export class VideoListHeaderComponent extends GenericHeaderComponent { 12export class VideoListHeaderComponent extends GenericHeaderComponent {
17 constructor (@Inject('data') public data: any) { 13 constructor (@Inject('data') public data: any) {