forked from Mirrors/elk
refactor: add bot indicator icon
This commit is contained in:
parent
6944a74653
commit
bbc1580010
2 changed files with 18 additions and 3 deletions
|
@ -1,5 +1,20 @@
|
||||||
|
<script setup lang="ts">
|
||||||
|
defineProps<{
|
||||||
|
showLabel?: boolean
|
||||||
|
}>()
|
||||||
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div flex="~" items-center border="~ base" text-secondary-light rounded-md px-1 text-xs my-auto>
|
<div
|
||||||
{{ $t('account.bot') }}
|
flex="~ gap1" items-center
|
||||||
|
:class="{ 'border border-base rounded-md px-1': showLabel }"
|
||||||
|
text-secondary-light text-xs
|
||||||
|
>
|
||||||
|
<CommonTooltip :content="$t('account.bot')" :disabled="showLabel">
|
||||||
|
<div i-ri:robot-line />
|
||||||
|
</CommonTooltip>
|
||||||
|
<div v-if="showLabel">
|
||||||
|
{{ $t('account.bot') }}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -76,7 +76,7 @@ const isSelf = $computed(() => currentUser.value?.account.id === account.id)
|
||||||
<div flex="~ col gap1">
|
<div flex="~ col gap1">
|
||||||
<div flex justify-between>
|
<div flex justify-between>
|
||||||
<AccountDisplayName :account="account" font-bold sm:text-2xl text-xl />
|
<AccountDisplayName :account="account" font-bold sm:text-2xl text-xl />
|
||||||
<AccountBotIndicator v-if="account.bot" />
|
<AccountBotIndicator v-if="account.bot" show-label />
|
||||||
</div>
|
</div>
|
||||||
<AccountHandle :account="account" />
|
<AccountHandle :account="account" />
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue