feat: link to account from single follow notification
parent
139a2ea3b6
commit
c830b8087a
|
@ -9,7 +9,8 @@ const { notification } = defineProps<{
|
||||||
<template>
|
<template>
|
||||||
<article flex flex-col relative>
|
<article flex flex-col relative>
|
||||||
<template v-if="notification.type === 'follow'">
|
<template v-if="notification.type === 'follow'">
|
||||||
<div flex items-center absolute px-3 py-3 bg-base rounded-br-3 top-0 left-0>
|
<NuxtLink :to="getAccountRoute(notification.account)">
|
||||||
|
<div flex items-center absolute pl-3 pr-4 py-3 bg-base rounded-br-3 top-0 left-0>
|
||||||
<div i-ri:user-follow-fill mr-1 color-primary />
|
<div i-ri:user-follow-fill mr-1 color-primary />
|
||||||
<ContentRich
|
<ContentRich
|
||||||
text-primary mr-1 font-bold line-clamp-1 ws-pre-wrap break-all
|
text-primary mr-1 font-bold line-clamp-1 ws-pre-wrap break-all
|
||||||
|
@ -21,6 +22,7 @@ const { notification } = defineProps<{
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<AccountBigCard :account="notification.account" />
|
<AccountBigCard :account="notification.account" />
|
||||||
|
</NuxtLink>
|
||||||
</template>
|
</template>
|
||||||
<template v-else-if="notification.type === 'admin.sign_up'">
|
<template v-else-if="notification.type === 'admin.sign_up'">
|
||||||
<div flex p3 items-center bg-shaded>
|
<div flex p3 items-center bg-shaded>
|
||||||
|
|
Loading…
Reference in New Issue