refactor(account): extract display name component
This commit is contained in:
parent
c7756add7d
commit
2bbbfd51c1
9 changed files with 27 additions and 45 deletions
|
@ -11,11 +11,7 @@ defineProps<{
|
|||
<AccountAvatar w-10 h-10 :account="account" shrink-0 />
|
||||
<div flex="~ col gap1" shrink h-full overflow-hidden leading-none>
|
||||
<div flex="~" gap-2>
|
||||
<ContentRich
|
||||
line-clamp-1 ws-pre-wrap break-all text-base
|
||||
:content="getDisplayName(account, { rich: true })"
|
||||
:emojis="account.emojis"
|
||||
/>
|
||||
<AccountDisplayName :account="account" line-clamp-1 ws-pre-wrap break-all text-base />
|
||||
<AccountBotIndicator v-if="account.bot" />
|
||||
</div>
|
||||
<AccountHandle text-sm :account="account" text-secondary-light />
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue