Skip to content

Commit cbb73c4

Browse files
committed
chore: add link for non-expandable contributors
1 parent 415ac01 commit cbb73c4

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

app/pages/about.vue

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,25 @@ onUnmounted(() => document.removeEventListener('pointerdown', onDocumentPointerD
300300
:key="contributor.id"
301301
class="relative h-12 w-12 list-none"
302302
>
303+
<LinkBase
304+
v-if="!isExpandable(contributor)"
305+
:to="contributor.html_url"
306+
no-underline
307+
no-external-icon
308+
:aria-label="$t('about.contributors.view_profile', { name: contributor.login })"
309+
class="group relative block h-12 w-12 rounded-lg transition-all outline-none p-0 bg-transparent"
310+
>
311+
<img
312+
:src="`${contributor.avatar_url}&s=64`"
313+
:alt="$t('about.contributors.avatar', { name: contributor.login })"
314+
width="64"
315+
height="64"
316+
class="w-12 h-12 rounded-lg ring-2 ring-transparent transition-all duration-200 hover:ring-accent"
317+
loading="lazy"
318+
/>
319+
</LinkBase>
303320
<button
321+
v-else
304322
type="button"
305323
:data-cid="contributor.id"
306324
:aria-expanded="activeContributor?.id === contributor.id ? 'true' : undefined"

0 commit comments

Comments
 (0)