feat: replace "Thread" with avatar for self replies

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

View File

@ -142,8 +142,7 @@
"content_warning": "Schreib hier deine Warnung", "content_warning": "Schreib hier deine Warnung",
"default_1": "Was geht dir gerade durch den Kopf?", "default_1": "Was geht dir gerade durch den Kopf?",
"reply_to_account": "Antwort an {0}", "reply_to_account": "Antwort an {0}",
"replying": "Antworten", "replying": "Antworten"
"the_thread": "Der Thread"
}, },
"search": { "search": {
"search_desc": "Suche nach Accounts & Hashtags" "search_desc": "Suche nach Accounts & Hashtags"
@ -180,7 +179,6 @@
"someone": "Jemand", "someone": "Jemand",
"spoiler_show_less": "Zeige weniger", "spoiler_show_less": "Zeige weniger",
"spoiler_show_more": "Zeige mehr", "spoiler_show_more": "Zeige mehr",
"thread": "Thread",
"try_original_site": "Versuche die original Seite" "try_original_site": "Versuche die original Seite"
}, },
"status_history": { "status_history": {

View File

@ -283,7 +283,6 @@
"someone": "Someone", "someone": "Someone",
"spoiler_show_less": "Show less", "spoiler_show_less": "Show less",
"spoiler_show_more": "Show more", "spoiler_show_more": "Show more",
"thread": "Thread",
"try_original_site": "Try original site" "try_original_site": "Try original site"
}, },
"status_history": { "status_history": {

View File

@ -283,7 +283,6 @@
"someone": "Someone", "someone": "Someone",
"spoiler_show_less": "Show less", "spoiler_show_less": "Show less",
"spoiler_show_more": "Show more", "spoiler_show_more": "Show more",
"thread": "Thread",
"try_original_site": "Try original site" "try_original_site": "Try original site"
}, },
"status_history": { "status_history": {