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