From f38364b82b7734b489e1f58d43ef492a25d051d1 Mon Sep 17 00:00:00 2001 From: fly_mc Date: Sun, 10 Nov 2024 01:59:17 +0800 Subject: [PATCH] skipRender --- packages/frontend/src/components/MkNote.vue | 16 ++++++++-------- .../frontend/src/components/MkNoteDetailed.vue | 7 +------ 2 files changed, 9 insertions(+), 14 deletions(-) diff --git a/packages/frontend/src/components/MkNote.vue b/packages/frontend/src/components/MkNote.vue index 19c63b600..37e759c53 100644 --- a/packages/frontend/src/components/MkNote.vue +++ b/packages/frontend/src/components/MkNote.vue @@ -15,13 +15,13 @@ SPDX-License-Identifier: AGPL-3.0-only
-
@@ -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 { diff --git a/packages/frontend/src/components/MkNoteDetailed.vue b/packages/frontend/src/components/MkNoteDetailed.vue index 7f02681e5..f89583624 100644 --- a/packages/frontend/src/components/MkNoteDetailed.vue +++ b/packages/frontend/src/components/MkNoteDetailed.vue @@ -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'" >
@@ -707,11 +707,6 @@ onMounted(() => { } } -.skipRender { - content-visibility: auto; - contain-intrinsic-size: 0 180px; -} - .footer { display: flex; align-items: center;