Skip to content

Commit

Permalink
feat(account): add tooltip for field icons
Browse files Browse the repository at this point in the history
  • Loading branch information
sxzz committed Jan 3, 2023
1 parent 1d9bd6a commit fe7bd2d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion components/account/AccountHeader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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>
<div text-secondary :class="getAccountFieldIcon(field.name)" :title="getFieldIconTitle(field.name)" />
<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>
Expand Down

0 comments on commit fe7bd2d

Please sign in to comment.