本次更新修复评论区邮箱字段只隐藏输入框、外层底板仍保留的问题。
现在邮箱输入框、图标容器和外层列容器都会一并隐藏,同时昵称输入栏自动占满整行。
修改源码
/* Hide the full Argon email field wrapper, not only the email input. */
#post_comment .col-md-6:has(#post_comment_email),
#post_comment .form-group:has(#post_comment_email),
#post_comment .input-group:has(#post_comment_email){display:none!important}
#post_comment .col-md-6:has(#post_comment_name){flex:0 0 100%!important;max-width:100%!important}
// PJAX fallback: remove the visible email wrapper after dynamic navigation.
Array.prototype.slice.call(document.querySelectorAll('#post_comment_email')).forEach(function(input) {
var column = closest(input, '.col-md-6') || closest(input, '.form-group') || closest(input, '.input-group');
if (column) column.style.setProperty('display', 'none', 'important');
});