diff options
author | Chocobozzz <me@florianbigard.com> | 2021-04-05 11:38:45 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-04-05 11:44:09 +0200 |
commit | 4363ce0e3edefcf5d8f913eabea365c424b0a956 (patch) | |
tree | ea965e604709890d0395a863637597b30dc3fe49 | |
parent | fcd8d3e0302cb1e061e6868f3180f0d66e149d18 (diff) | |
download | PeerTube-4363ce0e3edefcf5d8f913eabea365c424b0a956.tar.gz PeerTube-4363ce0e3edefcf5d8f913eabea365c424b0a956.tar.zst PeerTube-4363ce0e3edefcf5d8f913eabea365c424b0a956.zip |
Increase thumbnail size on server
3 files changed, 4 insertions, 14 deletions
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' | |||
16 | ] | 16 | ] |
17 | }) | 17 | }) |
18 | export class AccountVideosComponent extends AbstractVideoList implements OnInit, OnDestroy { | 18 | export class AccountVideosComponent extends AbstractVideoList implements OnInit, OnDestroy { |
19 | // No value because we don't want a page title | ||
19 | titlePage: string | 20 | titlePage: string |
20 | loadOnInit = false | 21 | loadOnInit = false |
21 | loadUserVideoPreferences = true | 22 | loadUserVideoPreferences = true |
@@ -77,11 +78,6 @@ export class AccountVideosComponent extends AbstractVideoList implements OnInit, | |||
77 | 78 | ||
78 | return this.videoService | 79 | return this.videoService |
79 | .getAccountVideos(options) | 80 | .getAccountVideos(options) |
80 | .pipe( | ||
81 | tap(({ total }) => { | ||
82 | this.titlePage = $localize`Published ${total} videos` | ||
83 | }) | ||
84 | ) | ||
85 | } | 81 | } |
86 | 82 | ||
87 | toggleModerationDisplay () { | 83 | 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' | |||
16 | ] | 16 | ] |
17 | }) | 17 | }) |
18 | export class VideoChannelVideosComponent extends AbstractVideoList implements OnInit, OnDestroy { | 18 | export class VideoChannelVideosComponent extends AbstractVideoList implements OnInit, OnDestroy { |
19 | // No value because we don't want a page title | ||
19 | titlePage: string | 20 | titlePage: string |
20 | loadOnInit = false | 21 | loadOnInit = false |
21 | loadUserVideoPreferences = true | 22 | loadUserVideoPreferences = true |
@@ -94,13 +95,6 @@ export class VideoChannelVideosComponent extends AbstractVideoList implements On | |||
94 | 95 | ||
95 | return this.videoService | 96 | return this.videoService |
96 | .getVideoChannelVideos(options) | 97 | .getVideoChannelVideos(options) |
97 | .pipe( | ||
98 | tap(({ total }) => { | ||
99 | this.titlePage = total === 1 | ||
100 | ? $localize`Published 1 video` | ||
101 | : $localize`Published ${total} videos` | ||
102 | }) | ||
103 | ) | ||
104 | } | 98 | } |
105 | 99 | ||
106 | generateSyndicationList () { | 100 | 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 = { | |||
595 | 595 | ||
596 | // Videos thumbnail size | 596 | // Videos thumbnail size |
597 | const THUMBNAILS_SIZE = { | 597 | const THUMBNAILS_SIZE = { |
598 | width: 223, | 598 | width: 280, |
599 | height: 122, | 599 | height: 157, |
600 | minWidth: 150 | 600 | minWidth: 150 |
601 | } | 601 | } |
602 | const PREVIEWS_SIZE = { | 602 | const PREVIEWS_SIZE = { |