From 746018f6b81b40e8858303662ac9ec5ce59ac6eb Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 28 Apr 2021 11:49:34 +0200 Subject: Refactor actor avatar display --- .../my-video-channels.component.html | 4 +--- .../my-video-channels.component.scss | 4 ++-- .../+my-video-channels/my-video-channels.module.ts | 4 +++- client/src/app/+my-library/my-library.module.ts | 4 ++-- .../my-ownership/my-ownership.component.html | 2 +- .../my-subscriptions/my-subscriptions.component.html | 7 +++---- .../my-subscriptions/my-subscriptions.component.scss | 19 +++++++++++++++---- 7 files changed, 27 insertions(+), 17 deletions(-) (limited to 'client/src/app/+my-library') diff --git a/client/src/app/+my-library/+my-video-channels/my-video-channels.component.html b/client/src/app/+my-library/+my-video-channels/my-video-channels.component.html index b704a1cc6..a2bdfa31a 100644 --- a/client/src/app/+my-library/+my-video-channels/my-video-channels.component.html +++ b/client/src/app/+my-library/+my-video-channels/my-video-channels.component.html @@ -22,9 +22,7 @@
- - Avatar - +
diff --git a/client/src/app/+my-library/+my-video-channels/my-video-channels.component.scss b/client/src/app/+my-library/+my-video-channels/my-video-channels.component.scss index 8804fa95c..dafba925e 100644 --- a/client/src/app/+my-library/+my-video-channels/my-video-channels.component.scss +++ b/client/src/app/+my-library/+my-video-channels/my-video-channels.component.scss @@ -20,8 +20,8 @@ input[type=text] { padding-bottom: 0; - img { - @include channel-avatar(80px); + my-actor-avatar { + @include actor-avatar-size(80px); margin-right: 10px; } diff --git a/client/src/app/+my-library/+my-video-channels/my-video-channels.module.ts b/client/src/app/+my-library/+my-video-channels/my-video-channels.module.ts index a23b53ee0..c775bfdee 100644 --- a/client/src/app/+my-library/+my-video-channels/my-video-channels.module.ts +++ b/client/src/app/+my-library/+my-video-channels/my-video-channels.module.ts @@ -8,6 +8,7 @@ import { MyVideoChannelCreateComponent } from './my-video-channel-create.compone import { MyVideoChannelUpdateComponent } from './my-video-channel-update.component' import { MyVideoChannelsRoutingModule } from './my-video-channels-routing.module' import { MyVideoChannelsComponent } from './my-video-channels.component' +import { SharedActorImageModule } from '@app/shared/shared-actor-image/shared-actor-image.module' @NgModule({ imports: [ @@ -18,7 +19,8 @@ import { MyVideoChannelsComponent } from './my-video-channels.component' SharedMainModule, SharedFormModule, SharedGlobalIconModule, - SharedActorImageEditModule + SharedActorImageEditModule, + SharedActorImageModule ], declarations: [ diff --git a/client/src/app/+my-library/my-library.module.ts b/client/src/app/+my-library/my-library.module.ts index a1d706f0b..264ad03f7 100644 --- a/client/src/app/+my-library/my-library.module.ts +++ b/client/src/app/+my-library/my-library.module.ts @@ -26,7 +26,7 @@ import { MyVideoPlaylistUpdateComponent } from './my-video-playlists/my-video-pl import { MyVideoPlaylistsComponent } from './my-video-playlists/my-video-playlists.component' import { VideoChangeOwnershipComponent } from './my-videos/modals/video-change-ownership.component' import { MyVideosComponent } from './my-videos/my-videos.component' -import { SharedAccountAvatarModule } from '../shared/shared-account-avatar/shared-account-avatar.module' +import { SharedActorImageModule } from '../shared/shared-actor-image/shared-actor-image.module' @NgModule({ imports: [ @@ -47,7 +47,7 @@ import { SharedAccountAvatarModule } from '../shared/shared-account-avatar/share SharedAbuseListModule, SharedShareModal, SharedVideoLiveModule, - SharedAccountAvatarModule + SharedActorImageModule ], declarations: [ diff --git a/client/src/app/+my-library/my-ownership/my-ownership.component.html b/client/src/app/+my-library/my-ownership/my-ownership.component.html index d0eff0521..4c02c78fc 100644 --- a/client/src/app/+my-library/my-ownership/my-ownership.component.html +++ b/client/src/app/+my-library/my-ownership/my-ownership.component.html @@ -37,7 +37,7 @@
- +
{{ videoChangeOwnership.initiatorAccount.displayName }} {{ videoChangeOwnership.initiatorAccount.nameWithHost }} diff --git a/client/src/app/+my-library/my-subscriptions/my-subscriptions.component.html b/client/src/app/+my-library/my-subscriptions/my-subscriptions.component.html index ff448ad87..853d47fe6 100644 --- a/client/src/app/+my-library/my-subscriptions/my-subscriptions.component.html +++ b/client/src/app/+my-library/my-subscriptions/my-subscriptions.component.html @@ -19,9 +19,7 @@
- - Avatar - + diff --git a/client/src/app/+my-library/my-subscriptions/my-subscriptions.component.scss b/client/src/app/+my-library/my-subscriptions/my-subscriptions.component.scss index 3c1a4d2ad..53ceaa250 100644 --- a/client/src/app/+my-library/my-subscriptions/my-subscriptions.component.scss +++ b/client/src/app/+my-library/my-subscriptions/my-subscriptions.component.scss @@ -8,8 +8,8 @@ input[type=text] { .video-channel { @include row-blocks; - img { - @include channel-avatar(80px); + > my-actor-avatar { + @include actor-avatar-size(80px); margin-right: 10px; } @@ -40,9 +40,20 @@ input[type=text] { } .actor-owner { - @include actor-owner; + @include disable-default-a-behaviour; + + font-size: 13px; + color: pvar(--mainForegroundColor); - margin-top: 0; + span:hover { + opacity: 0.8; + } + + my-actor-avatar { + margin-left: 7px; + display: inline-block; + vertical-align: top; + } } .video-subscriptions-header { -- cgit v1.2.3