feat(account): add tooltip for field icons

This commit is contained in:
三咲智子 2023-01-03 19:41:26 +08:00
parent 1d9bd6a9d4
commit fe7bd2d7e3
No known key found for this signature in database
GPG Key ID: 69992F2250DFD93E
1 changed files with 3 additions and 1 deletions

View File

@ -118,7 +118,9 @@ const isSelf = $computed(() => currentUser.value?.account.id === account.id)
</div>
<div v-if="iconFields.length" flex="~ wrap gap-4">
<div v-for="field in iconFields" :key="field.name" flex="~ gap-1" items-center>
<CommonTooltip :content="getFieldIconTitle(field.name)">
<div text-secondary :class="getAccountFieldIcon(field.name)" :title="getFieldIconTitle(field.name)" />
</CommonTooltip>
<ContentRich text-sm filter-saturate-0 :content="field.value" :emojis="account.emojis" />
</div>
</div>