fix: 修复页面内存泄漏问题

- 移除 initThemeTransition 中的 MutationObserver(会导致无限循环)
- 移除 will-change 属性(大量元素使用会占用过多内存)
- 主题切换过渡效果已在 setDarkmode() 函数中实现,无需重复
This commit is contained in:
2026-01-16 10:04:29 +08:00
parent 760a3adaa9
commit b613e019df
2 changed files with 3 additions and 13 deletions

View File

@@ -16327,7 +16327,6 @@ html.darkmode {
@media (hover: hover) and (pointer: fine) {
article.post.card {
transition: transform var(--animation-normal) var(--ease-out-expo), box-shadow var(--animation-normal) var(--ease-standard);
will-change: transform, box-shadow;
}
article.post.card:hover {
transform: translateY(-6px) scale(1.005);
@@ -16340,7 +16339,6 @@ html.darkmode {
}
article.post.card .post-thumbnail {
transition: transform var(--animation-slow) var(--ease-out-expo);
will-change: transform;
}
article.post.card:hover .post-thumbnail {
transform: scale(1.05);