From 0b68c24b2e68cd8ea8420c1cac2528cc87b0c64a Mon Sep 17 00:00:00 2001 From: oppiliappan Date: Wed, 12 Aug 2026 08:49:56 +0100 Subject: [PATCH] web/components: show profile hovercards on avatars in listings, timeline, and comments --- web/src/lib/components/comment/Comment.svelte | 9 +++++-- .../lib/components/profile/AvatarList.svelte | 25 +++++++++++++------ .../repo/issues/IssueCardContent.svelte | 9 ++++--- .../repo/pulls/PullCardContent.svelte | 5 +++- .../timeline/TimelineFollowEvent.svelte | 9 +++++-- .../timeline/TimelineRepoEvent.svelte | 5 +++- .../timeline/TimelineStarEvent.svelte | 5 +++- 7 files changed, 50 insertions(+), 17 deletions(-) diff --git a/web/src/lib/components/comment/Comment.svelte b/web/src/lib/components/comment/Comment.svelte index 2550dd39b..43fcd1cd2 100644 --- a/web/src/lib/components/comment/Comment.svelte +++ b/web/src/lib/components/comment/Comment.svelte @@ -1,6 +1,7 @@ +{#snippet avatarLink(person: AvatarPerson)} + + + +{/snippet} +
{#each shown as person, i (person.did)}
- - - + {#if popover} + + {@render avatarLink(person)} + + {:else} + {@render avatarLink(person)} + {/if}
{/each} diff --git a/web/src/lib/components/repo/issues/IssueCardContent.svelte b/web/src/lib/components/repo/issues/IssueCardContent.svelte index b9ec4f70e..0269b5aea 100644 --- a/web/src/lib/components/repo/issues/IssueCardContent.svelte +++ b/web/src/lib/components/repo/issues/IssueCardContent.svelte @@ -1,6 +1,7 @@