feat: add tooltips to add & remove buttons
This commit is contained in:
parent
c337e1fa4b
commit
2fe56d237d
1 changed files with 12 additions and 10 deletions
|
@ -127,6 +127,7 @@ function removeAccount(account: mastodon.v1.Account) {
|
||||||
:result="result"
|
:result="result"
|
||||||
:tabindex="focused ? 0 : -1"
|
:tabindex="focused ? 0 : -1"
|
||||||
/>
|
/>
|
||||||
|
<CommonTooltip :content="isInCurrentList(result.id) ? $t('list.remove_account') : $t('list.add_account')">
|
||||||
<button
|
<button
|
||||||
text-sm p2 border-1 transition-colors
|
text-sm p2 border-1 transition-colors
|
||||||
border-dark
|
border-dark
|
||||||
|
@ -137,6 +138,7 @@ function removeAccount(account: mastodon.v1.Account) {
|
||||||
>
|
>
|
||||||
<span :class="isInCurrentList(result.id) ? 'i-ri:user-unfollow-line' : 'i-ri:user-add-line'" />
|
<span :class="isInCurrentList(result.id) ? 'i-ri:user-unfollow-line' : 'i-ri:user-add-line'" />
|
||||||
</button>
|
</button>
|
||||||
|
</CommonTooltip>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<span v-else block text-center text-sm text-secondary>
|
<span v-else block text-center text-sm text-secondary>
|
||||||
|
|
Loading…
Reference in a new issue