feat: replace "Thread" with avatar for self replies

This commit is contained in:
patak 2022-12-29 20:40:59 +01:00
parent f4d4e415fb
commit 4460d0f59d
4 changed files with 6 additions and 11 deletions

View file

@ -20,14 +20,13 @@ const account = isSelf ? computed(() => status.account) : useAccountById(status.
:title="account ? `Replying to ${getDisplayName(account)}` : 'Replying to someone'"
>
<template v-if="account">
<div i-ri:reply-fill :class="collapsed ? '' : 'scale-x-[-1]'" text-secondary-light mr-0.5 />
<template v-if="!isSelf">
<AccountAvatar v-if="simplified || status.inReplyToAccountId === currentUser?.account.id" :account="account" :link="false" w-5 h-5 />
<AccountInlineInfo v-else :account="account" :link="false" />
<div i-ri:reply-fill :class="collapsed ? '' : 'scale-x-[-1]'" text-secondary-light />
<template v-if="!collapsed">
<AccountAvatar v-if="isSelf || simplified || status.inReplyToAccountId === currentUser?.account.id" :account="account" :link="false" w-5 h-5 mx-0.5 />
<AccountInlineInfo v-else :account="account" :link="false" mx-0.5 />
</template>
<span v-else-if="!collapsed" ws-nowrap>{{ $t('status.thread') }}</span>
</template>
<div i-ph:chats-fill text-primary text-lg ml-0.5 />
<div i-ph:chats-fill text-primary text-lg />
</NuxtLink>
</div>
</template>