aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared/video/video-miniature.component.ts
diff options
context:
space:
mode:
authorRigel Kent <sendmemail@rigelk.eu>2020-06-12 09:51:13 +0200
committerRigel Kent <sendmemail@rigelk.eu>2020-06-12 09:51:16 +0200
commit435258ea3c17c10c7c2735075e59122956d45fca (patch)
tree44136d8c9362a5b219f1458a2a53a3c671cadee3 /client/src/app/shared/video/video-miniature.component.ts
parent8b381422b88a02a971f5e50422b5b4b79b1101e5 (diff)
downloadPeerTube-435258ea3c17c10c7c2735075e59122956d45fca.tar.gz
PeerTube-435258ea3c17c10c7c2735075e59122956d45fca.tar.zst
PeerTube-435258ea3c17c10c7c2735075e59122956d45fca.zip
fix miniature fixed height, add link/title to avatar, remove pr-2 on channels list
Diffstat (limited to 'client/src/app/shared/video/video-miniature.component.ts')
-rw-r--r--client/src/app/shared/video/video-miniature.component.ts10
1 files changed, 7 insertions, 3 deletions
diff --git a/client/src/app/shared/video/video-miniature.component.ts b/client/src/app/shared/video/video-miniature.component.ts
index ccf90af54..36e18d018 100644
--- a/client/src/app/shared/video/video-miniature.component.ts
+++ b/client/src/app/shared/video/video-miniature.component.ts
@@ -78,6 +78,7 @@ export class VideoMiniatureComponent implements OnInit {
78 addToWatchLaterText: string 78 addToWatchLaterText: string
79 addedToWatchLaterText: string 79 addedToWatchLaterText: string
80 inWatchLaterPlaylist: boolean 80 inWatchLaterPlaylist: boolean
81 channelLinkTitle = ''
81 82
82 watchLaterPlaylist: { 83 watchLaterPlaylist: {
83 id: number 84 id: number
@@ -96,9 +97,7 @@ export class VideoMiniatureComponent implements OnInit {
96 private videoPlaylistService: VideoPlaylistService, 97 private videoPlaylistService: VideoPlaylistService,
97 private cd: ChangeDetectorRef, 98 private cd: ChangeDetectorRef,
98 @Inject(LOCALE_ID) private localeId: string 99 @Inject(LOCALE_ID) private localeId: string
99 ) { 100 ) {}
100
101 }
102 101
103 get isVideoBlur () { 102 get isVideoBlur () {
104 return this.video.isVideoNSFWForUser(this.user, this.serverConfig) 103 return this.video.isVideoNSFWForUser(this.user, this.serverConfig)
@@ -114,6 +113,11 @@ export class VideoMiniatureComponent implements OnInit {
114 113
115 this.setUpBy() 114 this.setUpBy()
116 115
116 this.channelLinkTitle = this.i18n(
117 'Go to the channel page of {{name}} ({{handle}})',
118 { name: this.video.channel.name, handle: this.video.byVideoChannel }
119 )
120
117 // We rely on mouseenter to lazy load actions 121 // We rely on mouseenter to lazy load actions
118 if (this.screenService.isInTouchScreen()) { 122 if (this.screenService.isInTouchScreen()) {
119 this.loadActions() 123 this.loadActions()