1
0
Fork 1
mirror of https://github.com/elk-zone/elk.git synced 2024-11-02 23:19:57 +00:00

perf: don't destroy elements when zen mode

closes #834
This commit is contained in:
三咲智子 2023-01-07 22:03:20 +08:00
parent bbc1580010
commit 30e4ef57df
No known key found for this signature in database
GPG key ID: 69992F2250DFD93E

View file

@ -138,7 +138,7 @@ const isDM = $computed(() => status.visibility === 'direct')
<StatusReplyingTo :collapsed="true" :status="status" :class="faded ? 'text-secondary-light' : ''" /> <StatusReplyingTo :collapsed="true" :status="status" :class="faded ? 'text-secondary-light' : ''" />
</div> </div>
<div flex-auto /> <div flex-auto />
<div v-if="!userSettings.zenMode" text-sm text-secondary flex="~ row nowrap" hover:underline> <div v-show="!userSettings.zenMode" text-sm text-secondary flex="~ row nowrap" hover:underline>
<AccountBotIndicator v-if="status.account.bot" me-2 /> <AccountBotIndicator v-if="status.account.bot" me-2 />
<div flex> <div flex>
<CommonTooltip :content="createdAt"> <CommonTooltip :content="createdAt">
@ -154,9 +154,7 @@ const isDM = $computed(() => status.visibility === 'direct')
<StatusActionsMore v-if="actions !== false" :status="status" me--2 /> <StatusActionsMore v-if="actions !== false" :status="status" me--2 />
</div> </div>
<StatusContent :status="status" :context="context" mb2 :class="{ 'mt-2 mb1': isDM }" /> <StatusContent :status="status" :context="context" mb2 :class="{ 'mt-2 mb1': isDM }" />
<div> <StatusActions v-if="actions !== false" v-show="!userSettings.zenMode" :status="status" />
<StatusActions v-if="(actions !== false && !userSettings.zenMode)" :status="status" />
</div>
</div> </div>
</div> </div>
</div> </div>