diff --git a/argontheme.js b/argontheme.js index d762e47..f93104a 100644 --- a/argontheme.js +++ b/argontheme.js @@ -1017,15 +1017,9 @@ if (argonConfig.waterflow_columns != "1") { $("#post_comment").removeClass("post-comment-force-privatemode-on post-comment-force-privatemode-off"); } - // 使用原生事件委托确保第一次点击也能响应 - document.addEventListener('click', function(e) { - let target = e.target.closest('.comment-reply'); - if (target) { - reply(target.getAttribute('data-id')); - } + $(document).on("click" , ".comment-reply" , function(){ + reply(this.getAttribute("data-id")); }); - - // 保留 jQuery 事件绑定用于 PJAX 兼容 $(document).on("click pjax:click" , "#post_comment_reply_cancel" , function(){ cancelReply(); }); diff --git a/style.css b/style.css index 3ff44ed..2e619e6 100644 --- a/style.css +++ b/style.css @@ -5322,11 +5322,13 @@ html.darkmode .comment-item-avatar .avatar { background: var(--color-widgets); border-radius: var(--m3-shape-sm, 6px); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); + pointer-events: none; } .comment-item:hover .comment-operations { opacity: 1; transform: translateY(0); + pointer-events: auto; } html.darkmode .comment-operations {