fix: 修复页面内存泄漏问题
- 移除 initThemeTransition 中的 MutationObserver(会导致无限循环) - 移除 will-change 属性(大量元素使用会占用过多内存) - 主题切换过渡效果已在 setDarkmode() 函数中实现,无需重复
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user