From 46ed55544cafcd22dc1c4e911a0c31d326835d1a Mon Sep 17 00:00:00 2001 From: kontrollanten <6680299+kontrollanten@users.noreply.github.com> Date: Mon, 20 Sep 2021 10:25:29 +0200 Subject: [PATCH] add option to always show channel display name closes #4040 --- .../video-avatar-channel.component.html | 19 +++++++++++++----- .../video-avatar-channel.component.scss | 20 ++++--------------- .../video-avatar-channel.component.ts | 3 ++- .../+video-watch/video-watch.component.html | 10 +++++----- .../+video-watch/video-watch.component.ts | 4 ++++ .../video-miniature.component.html | 4 ++-- .../video-miniature.component.ts | 5 +++++ config/default.yaml | 3 +++ config/production.yaml.example | 3 +++ server/initializers/config.ts | 5 ++++- server/lib/server-config-manager.ts | 4 +++- shared/models/server/server-config.model.ts | 2 ++ 12 files changed, 51 insertions(+), 31 deletions(-) diff --git a/client/src/app/+videos/+video-watch/shared/metadata/video-avatar-channel.component.html b/client/src/app/+videos/+video-watch/shared/metadata/video-avatar-channel.component.html index 5a7221858..d433c7aba 100644 --- a/client/src/app/+videos/+video-watch/shared/metadata/video-avatar-channel.component.html +++ b/client/src/app/+videos/+video-watch/shared/metadata/video-avatar-channel.component.html @@ -1,11 +1,20 @@ -
+
diff --git a/client/src/app/+videos/+video-watch/shared/metadata/video-avatar-channel.component.scss b/client/src/app/+videos/+video-watch/shared/metadata/video-avatar-channel.component.scss index 1ff8fb96e..71c5e4b5a 100644 --- a/client/src/app/+videos/+video-watch/shared/metadata/video-avatar-channel.component.scss +++ b/client/src/app/+videos/+video-watch/shared/metadata/video-avatar-channel.component.scss @@ -20,23 +20,11 @@ position: relative; margin-bottom: 5px; - &.generic-channel { - .account { - @include main(); - } - - .channel { - display: none !important; - } + .main-avatar { + @include main(); } - &:not(.generic-channel) { - .account { - @include secondary(); - } - - .channel { - @include main(); - } + .second-avatar { + @include secondary(); } } diff --git a/client/src/app/+videos/+video-watch/shared/metadata/video-avatar-channel.component.ts b/client/src/app/+videos/+video-watch/shared/metadata/video-avatar-channel.component.ts index 63edd7bad..146c440b3 100644 --- a/client/src/app/+videos/+video-watch/shared/metadata/video-avatar-channel.component.ts +++ b/client/src/app/+videos/+video-watch/shared/metadata/video-avatar-channel.component.ts @@ -10,7 +10,8 @@ export class VideoAvatarChannelComponent implements OnInit { @Input() video: Video @Input() byAccount: string - @Input() genericChannel: boolean + @Input() showAccount: boolean + @Input() showChannel: boolean channelLinkTitle = '' accountLinkTitle = '' diff --git a/client/src/app/+videos/+video-watch/video-watch.component.html b/client/src/app/+videos/+video-watch/video-watch.component.html index 45cfba167..763c80e54 100644 --- a/client/src/app/+videos/+video-watch/video-watch.component.html +++ b/client/src/app/+videos/+video-watch/video-watch.component.html @@ -60,19 +60,19 @@
- +