fix: 修复文章加载动画功能无论是否启用都能正常工作
- 修改CSS选择器从.post-preview改为.post,匹配所有文章卡片 - 修改JavaScript选择器从article.post-preview改为article.post - 添加#main.article-list限定,只在文章列表页生效 - 修复清理代码,确保能正确移除所有文章的加载状态
This commit is contained in:
@@ -3877,13 +3877,13 @@ html.filter-grayscale {
|
||||
z-index: 10;
|
||||
}
|
||||
|
||||
.post-list-pjax-loading .post-preview {
|
||||
#main.post-list-pjax-loading .post {
|
||||
opacity: 0;
|
||||
pointer-events: none;
|
||||
transition: opacity 0.3s ease;
|
||||
}
|
||||
|
||||
.post-list-pjax-loading .post-preview.post-pjax-loading {
|
||||
#main.post-list-pjax-loading .post.post-pjax-loading {
|
||||
opacity: 1 !important;
|
||||
pointer-events: auto;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user