fix: 完善文章加载动画的状态恢复逻辑

- 在pjax:beforeReplace中恢复所有隐藏卡片的opacity和pointer-events
- 确保页面切换后所有卡片都能正常显示和交互
- 保持无!important的纯净实现方式
This commit is contained in:
2026-01-23 15:40:24 +08:00
parent c3acaea5e2
commit 5ee608537e

View File

@@ -2893,6 +2893,12 @@ $(document).pjax("a[href]:not([no-pjax]):not(.no-pjax):not([target='_blank']):no
$(".post-preview .loading-css-animation").remove(); $(".post-preview .loading-css-animation").remove();
$("#main").removeClass("post-list-pjax-loading"); $("#main").removeClass("post-list-pjax-loading");
// 恢复所有卡片的显示状态
$(".post-preview").css({
"opacity": "",
"pointer-events": ""
});
// 恢复footer // 恢复footer
$("#footer").css({ $("#footer").css({
"opacity": "", "opacity": "",