From 7d026caf683e42fd57a243a3b52a5e4f476fbb4e Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 28 Apr 2021 15:59:46 +0200 Subject: Remove avatarUrl from models --- .../video-avatar-channel.component.html | 30 ++++-------- .../video-avatar-channel.component.scss | 56 +++++++++++----------- .../+video-watch/video-avatar-channel.component.ts | 1 - 3 files changed, 37 insertions(+), 50 deletions(-) (limited to 'client/src/app/+videos') diff --git a/client/src/app/+videos/+video-watch/video-avatar-channel.component.html b/client/src/app/+videos/+video-watch/video-avatar-channel.component.html index b8b5d7843..5f149cbd1 100644 --- a/client/src/app/+videos/+video-watch/video-avatar-channel.component.html +++ b/client/src/app/+videos/+video-watch/video-avatar-channel.component.html @@ -1,21 +1,11 @@ -
- - - Channel avatar - - - - - - - - - - Channel avatar - - - - - - +
+ + +
diff --git a/client/src/app/+videos/+video-watch/video-avatar-channel.component.scss b/client/src/app/+videos/+video-watch/video-avatar-channel.component.scss index 4998e85fa..20e32240c 100644 --- a/client/src/app/+videos/+video-watch/video-avatar-channel.component.scss +++ b/client/src/app/+videos/+video-watch/video-avatar-channel.component.scss @@ -1,44 +1,42 @@ @import '_mixins'; +@mixin main { + @include actor-avatar-size(35px); +} + +@mixin secondary { + height: 60%; + width: 60%; + position: absolute; + bottom: -5px; + right: -5px; + background-color: rgba(0, 0, 0, 0); +} + .wrapper { - $avatar-size: 35px; + @include actor-avatar-size(35px); - width: $avatar-size; - height: $avatar-size; position: relative; margin-right: 5px; margin-bottom: 5px; - &.avatar-sm { - width: 28px; - height: 28px; - margin-bottom: 3px; - } + &.generic-channel { + .account { + @include main(); + } - a { - @include disable-outline; + .channel { + display: none !important; + } } - a img { - height: 100%; - object-fit: cover; - position: absolute; - top:50%; - left:50%; - transform: translate(-50%,-50%); - border-radius: 5px; - - &:not(.channel-avatar) { - border-radius: 50%; + &:not(.generic-channel) { + .account { + @include secondary(); } - } - a:nth-of-type(2) img { - height: 60%; - width: 60%; - border: 2px solid pvar(--mainBackgroundColor); - transform: translateX(15%); - position: relative; - background-color: pvar(--mainBackgroundColor); + .channel { + @include main(); + } } } diff --git a/client/src/app/+videos/+video-watch/video-avatar-channel.component.ts b/client/src/app/+videos/+video-watch/video-avatar-channel.component.ts index 0b6e796df..63edd7bad 100644 --- a/client/src/app/+videos/+video-watch/video-avatar-channel.component.ts +++ b/client/src/app/+videos/+video-watch/video-avatar-channel.component.ts @@ -10,7 +10,6 @@ export class VideoAvatarChannelComponent implements OnInit { @Input() video: Video @Input() byAccount: string - @Input() size: 'md' | 'sm' = 'md' @Input() genericChannel: boolean channelLinkTitle = '' -- cgit v1.2.3