mirror of
https://github.com/paricafe/misskey.git
synced 2024-11-28 02:36:43 -06:00
fix rendering optimization
This commit is contained in:
parent
59b32232f9
commit
2b0cdd71c4
4 changed files with 4 additions and 15 deletions
|
@ -762,9 +762,7 @@ function emitUpdReaction(emoji: string, delta: number) {
|
|||
|
||||
.skipRender {
|
||||
content-visibility: auto;
|
||||
contain-intrinsic-size: 0 200px;
|
||||
transition: opacity 0.2s ease-in-out, transform 0.2s ease-in-out;
|
||||
will-change: opacity, transform;
|
||||
contain-intrinsic-size: 0 180px;
|
||||
}
|
||||
|
||||
.tip {
|
||||
|
|
|
@ -707,9 +707,7 @@ onMounted(() => {
|
|||
|
||||
.skipRender {
|
||||
content-visibility: auto;
|
||||
contain-intrinsic-size: 0 200px;
|
||||
transition: opacity 0.2s ease-in-out, transform 0.2s ease-in-out;
|
||||
will-change: opacity, transform;
|
||||
contain-intrinsic-size: 0 180px;
|
||||
}
|
||||
|
||||
.footer {
|
||||
|
|
|
@ -4,7 +4,7 @@ SPDX-License-Identifier: AGPL-3.0-only
|
|||
-->
|
||||
|
||||
<template>
|
||||
<div :class="[$style.root, { [$style.skipRender]: defaultStore.state.enableRenderingOptimization }]">
|
||||
<div :class="$style.root">
|
||||
<div :class="$style.head">
|
||||
<MkAvatar v-if="['pollEnded', 'note'].includes(notification.type) && 'note' in notification" :class="$style.icon" :user="notification.note.user" link preview/>
|
||||
<MkAvatar v-else-if="['roleAssigned', 'achievementEarned', 'exportCompleted', 'login'].includes(notification.type)" :class="$style.icon" :user="$i" link preview/>
|
||||
|
@ -233,13 +233,6 @@ function getActualReactedUsersCount(notification: Misskey.entities.Notification)
|
|||
--eventOther: #88a6b7;
|
||||
}
|
||||
|
||||
.skipRender {
|
||||
content-visibility: auto;
|
||||
contain-intrinsic-size: 0 200px;
|
||||
transition: opacity 0.2s ease-in-out, transform 0.2s ease-in-out;
|
||||
will-change: opacity, transform;
|
||||
}
|
||||
|
||||
.head {
|
||||
position: sticky;
|
||||
top: 0;
|
||||
|
|
|
@ -477,7 +477,7 @@ export const defaultStore = markRaw(new Storage('base', {
|
|||
},
|
||||
skipNoteRender: {
|
||||
where: 'device',
|
||||
default: true,
|
||||
default: false,
|
||||
},
|
||||
|
||||
sound_masterVolume: {
|
||||
|
|
Loading…
Reference in a new issue