forked from Mirrors/elk
feat(account): add tooltip for field icons
This commit is contained in:
parent
1d9bd6a9d4
commit
fe7bd2d7e3
1 changed files with 3 additions and 1 deletions
|
@ -118,7 +118,9 @@ const isSelf = $computed(() => currentUser.value?.account.id === account.id)
|
||||||
</div>
|
</div>
|
||||||
<div v-if="iconFields.length" flex="~ wrap gap-4">
|
<div v-if="iconFields.length" flex="~ wrap gap-4">
|
||||||
<div v-for="field in iconFields" :key="field.name" flex="~ gap-1" items-center>
|
<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)" />
|
<div text-secondary :class="getAccountFieldIcon(field.name)" :title="getFieldIconTitle(field.name)" />
|
||||||
|
</CommonTooltip>
|
||||||
<ContentRich text-sm filter-saturate-0 :content="field.value" :emojis="account.emojis" />
|
<ContentRich text-sm filter-saturate-0 :content="field.value" :emojis="account.emojis" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue