2022 主题bug修复

This commit is contained in:
Vaica committed 2026-06-24 20:22:40 +08:00
1 parent a6b1098d60
commit 56ea059fc0
16 files changed
+1357 -334

No files matched your search

+2 -2
View File
@@ -2,7 +2,7 @@
document.addEventListener('DOMContentLoaded', function() {
// 文章图片灯箱
if (window.ViewImage) {
ViewImage.init('.post-content img');
ViewImage.init('.post-content img:not(.amigo-music-card__cover):not(.amigo-voice-avatar):not(.amigo-livephoto-img)');
}
// 灯箱增强:滚动关闭 + fade scale 退回动画
@@ -10,7 +10,7 @@ document.addEventListener('DOMContentLoaded', function() {
var clickedImg = null;
document.addEventListener('click', function(e) {
var img = e.target.closest('.post-content img');
var img = e.target.closest('.post-content img:not(.amigo-music-card__cover):not(.amigo-voice-avatar):not(.amigo-livephoto-img)');
if (img) clickedImg = img;
}, true);