]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Increase thumbnail size on server
authorChocobozzz <me@florianbigard.com>
Mon, 5 Apr 2021 09:38:45 +0000 (11:38 +0200)
committerChocobozzz <me@florianbigard.com>
Mon, 5 Apr 2021 09:44:09 +0000 (11:44 +0200)
client/src/app/+accounts/account-videos/account-videos.component.ts
client/src/app/+video-channels/video-channel-videos/video-channel-videos.component.ts
server/initializers/constants.ts

index 78af2316a78d77452569de560e5fcc93c02bdb01..75af45e9091c97e0ead52bd0606007dcca9874ec 100644 (file)
@@ -16,6 +16,7 @@ import { VideoFilter } from '@shared/models'
   ]
 })
 export class AccountVideosComponent extends AbstractVideoList implements OnInit, OnDestroy {
+  // No value because we don't want a page title
   titlePage: string
   loadOnInit = false
   loadUserVideoPreferences = true
@@ -77,11 +78,6 @@ export class AccountVideosComponent extends AbstractVideoList implements OnInit,
 
     return this.videoService
                .getAccountVideos(options)
-               .pipe(
-                 tap(({ total }) => {
-                   this.titlePage = $localize`Published ${total} videos`
-                 })
-               )
   }
 
   toggleModerationDisplay () {
index e05b06e5c0200b586786f9b6d7d55d4e4708ec22..d83fc1324432f911bbd9554e79351076c6807c96 100644 (file)
@@ -16,6 +16,7 @@ import { VideoFilter } from '@shared/models'
   ]
 })
 export class VideoChannelVideosComponent extends AbstractVideoList implements OnInit, OnDestroy {
+  // No value because we don't want a page title
   titlePage: string
   loadOnInit = false
   loadUserVideoPreferences = true
@@ -94,13 +95,6 @@ export class VideoChannelVideosComponent extends AbstractVideoList implements On
 
     return this.videoService
                .getVideoChannelVideos(options)
-               .pipe(
-                 tap(({ total }) => {
-                   this.titlePage = total === 1
-                    ? $localize`Published 1 video`
-                    : $localize`Published ${total} videos`
-                 })
-               )
   }
 
   generateSyndicationList () {
index b37aeb6223c8e3c09bbf8e6a041ee556735e6965..25e9aad9c249985b12e2be9b21bc795ef3500cf6 100644 (file)
@@ -595,8 +595,8 @@ const STATIC_MAX_AGE = {
 
 // Videos thumbnail size
 const THUMBNAILS_SIZE = {
-  width: 223,
-  height: 122,
+  width: 280,
+  height: 157,
   minWidth: 150
 }
 const PREVIEWS_SIZE = {