mirror of
https://github.com/elk-zone/elk.git
synced 2024-11-21 17:05:22 +03:00
fix: Show lock indicator with the correct state (#2226)
This commit is contained in:
parent
da31709677
commit
8a86282951
3 changed files with 3 additions and 3 deletions
|
@ -23,7 +23,7 @@ const { account, as = 'div' } = defineProps<{
|
|||
<div flex="~ col" shrink pt-1 h-full overflow-hidden justify-center leading-none select-none>
|
||||
<div flex="~" gap-2>
|
||||
<AccountDisplayName :account="account" font-bold line-clamp-1 ws-pre-wrap break-all text-lg />
|
||||
<AccountLockIndicator v-if="account.bot" text-xs />
|
||||
<AccountLockIndicator v-if="account.locked" text-xs />
|
||||
<AccountBotIndicator v-if="account.bot" text-xs />
|
||||
</div>
|
||||
<AccountHandle :account="account" text-secondary-light />
|
||||
|
|
|
@ -14,7 +14,7 @@ defineProps<{
|
|||
<div flex="~ col gap1" shrink h-full overflow-hidden leading-none>
|
||||
<div flex="~" gap-2>
|
||||
<AccountDisplayName :account="account" line-clamp-1 ws-pre-wrap break-all text-base />
|
||||
<AccountLockIndicator v-if="account.bot" text-xs />
|
||||
<AccountLockIndicator v-if="account.locked" text-xs />
|
||||
<AccountBotIndicator v-if="account.bot" text-xs />
|
||||
</div>
|
||||
<AccountHandle text-sm :account="account" text-secondary-light />
|
||||
|
|
|
@ -155,7 +155,7 @@ const forceShow = ref(false)
|
|||
</AccountHoverWrapper>
|
||||
<div flex-auto />
|
||||
<div v-show="!getPreferences(userSettings, 'zenMode')" text-sm text-secondary flex="~ row nowrap" hover:underline whitespace-nowrap>
|
||||
<AccountLockIndicator v-if="status.account.bot" me-2 />
|
||||
<AccountLockIndicator v-if="status.account.locked" me-2 />
|
||||
<AccountBotIndicator v-if="status.account.bot" me-2 />
|
||||
<div flex="~ gap1" items-center>
|
||||
<StatusVisibilityIndicator v-if="status.visibility !== 'public'" :status="status" />
|
||||
|
|
Loading…
Reference in a new issue