From: Chocobozzz Date: Mon, 5 Apr 2021 09:38:45 +0000 (+0200) Subject: Increase thumbnail size on server X-Git-Tag: v3.2.0-rc.1~322 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=4363ce0e3edefcf5d8f913eabea365c424b0a956;hp=fcd8d3e0302cb1e061e6868f3180f0d66e149d18;p=github%2FChocobozzz%2FPeerTube.git Increase thumbnail size on server --- diff --git a/client/src/app/+accounts/account-videos/account-videos.component.ts b/client/src/app/+accounts/account-videos/account-videos.component.ts index 78af2316a..75af45e90 100644 --- a/client/src/app/+accounts/account-videos/account-videos.component.ts +++ b/client/src/app/+accounts/account-videos/account-videos.component.ts @@ -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 () { diff --git a/client/src/app/+video-channels/video-channel-videos/video-channel-videos.component.ts b/client/src/app/+video-channels/video-channel-videos/video-channel-videos.component.ts index e05b06e5c..d83fc1324 100644 --- a/client/src/app/+video-channels/video-channel-videos/video-channel-videos.component.ts +++ b/client/src/app/+video-channels/video-channel-videos/video-channel-videos.component.ts @@ -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 () { diff --git a/server/initializers/constants.ts b/server/initializers/constants.ts index b37aeb622..25e9aad9c 100644 --- a/server/initializers/constants.ts +++ b/server/initializers/constants.ts @@ -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 = {