feat: improve account links feedback

This commit is contained in:
Anthony Fu 2022-11-27 11:54:46 +08:00
parent 47ad3fe8bf
commit 2fb5412a08
8 changed files with 16 additions and 9 deletions

View file

@ -8,8 +8,12 @@ const { link = true } = defineProps<{
</script>
<template>
<NuxtLink :to="link ? getAccountPath(account) : undefined" min-w-0 flex gap-1 items-center>
<NuxtLink
:to="link ? getAccountPath(account) : undefined"
:class="link ? 'text-link-rounded' : ''"
min-w-0 flex gap-1 items-center
>
<AccountAvatar :account="account" w-5 h-5 />
<ContentRich hover:underline :content="getDisplayName(account, { rich: true })" :emojis="account.emojis" />
<ContentRich :content="getDisplayName(account, { rich: true })" :emojis="account.emojis" />
</NuxtLink>
</template>