skipRender

This commit is contained in:
fly_mc 2024-11-10 01:59:17 +08:00
parent ec500ccdae
commit f38364b82b
2 changed files with 9 additions and 14 deletions

View file

@ -15,13 +15,13 @@ SPDX-License-Identifier: AGPL-3.0-only
<div v-if="collapsedUnexpectedLangs && isUnexpectedLanguage && !languageExpanded && !isRenote" :class="$style.collapsedLanguage">
<MkAvatar :class="$style.collapsedLanguageAvatar" :user="appearNote.user" link preview/>
<Mfm
:text="getNoteSummary(appearNote)"
:plain="true"
:nowrap="true"
:author="appearNote.user"
:nyaize="'respect'"
:class="$style.collapsedLanguageText"
<Mfm
:text="getNoteSummary(appearNote)"
:plain="true"
:nowrap="true"
:author="appearNote.user"
:nyaize="'respect'"
:class="$style.collapsedLanguageText"
@click.stop="languageExpanded = true"
/>
</div>
@ -790,7 +790,7 @@ function emitUpdReaction(emoji: string, delta: number) {
.skipRender {
content-visibility: auto;
contain-intrinsic-size: 0 180px;
contain-intrinsic-size: 0 200px;
}
.tip {

View file

@ -9,7 +9,7 @@ SPDX-License-Identifier: AGPL-3.0-only
v-show="!isDeleted"
ref="rootEl"
v-hotkey="keymap"
:class="[$style.root, { [$style.skipRender]: defaultStore.state.enableRenderingOptimization }]"
:class="$style.root"
:tabindex="isDeleted ? '-1' : '0'"
>
<div v-if="appearNote.reply && appearNote.reply.replyId">
@ -707,11 +707,6 @@ onMounted(() => {
}
}
.skipRender {
content-visibility: auto;
contain-intrinsic-size: 0 180px;
}
.footer {
display: flex;
align-items: center;