From a6af10ee20fcf92fc68f43c45f5e7182093f7cd2 Mon Sep 17 00:00:00 2001
From: DebaucheryLibrarian
Date: Sat, 26 Oct 2024 01:03:30 +0200
Subject: [PATCH] Using actors avatars table for secondary profile photos.
---
components/actors/bio.vue | 2 ++
components/edit/avatar.vue | 3 ++-
pages/actors/@actorId/+Page.vue | 11 ++-------
pages/actors/@actorId/edit/+Page.vue | 9 ++++----
src/actors.js | 34 ++++++++++++++++++++++++----
5 files changed, 40 insertions(+), 19 deletions(-)
diff --git a/components/actors/bio.vue b/components/actors/bio.vue
index 3a5bd3c..4c3488b 100644
--- a/components/actors/bio.vue
+++ b/components/actors/bio.vue
@@ -333,12 +333,14 @@
v-if="description.entity.type === 'network' || !description.entity.parent || description.entity.isIndependent"
:src="`/logos/${description.entity.slug}/thumbs/network.png`"
class="description-logo"
+ loading="lazy"
>
diff --git a/components/edit/avatar.vue b/components/edit/avatar.vue
index f012015..d6de9df 100644
--- a/components/edit/avatar.vue
+++ b/components/edit/avatar.vue
@@ -79,7 +79,8 @@ defineProps({
padding: .25rem;
.icon {
- fill: var(--highlight);
+ fill: var(--highlight-strong-20);
+ filter: drop-shadow(0 0 1px var(--shadow));
}
}
diff --git a/pages/actors/@actorId/+Page.vue b/pages/actors/@actorId/+Page.vue
index 939ceb3..200b81d 100644
--- a/pages/actors/@actorId/+Page.vue
+++ b/pages/actors/@actorId/+Page.vue
@@ -37,10 +37,10 @@
!!profile.avatar)
- .map((profile) => [profile.avatar.id, {
- ...profile.avatar,
- isAvatar: profile.avatar.id === actor.avatar.id,
- }])));