From 84d3c4d0defc333031d72c3bac827e1f0077e91d Mon Sep 17 00:00:00 2001 From: Kent Liao <2964556627@qq.com> Date: Wed, 1 Mar 2023 21:56:18 +0800 Subject: =?UTF-8?q?=F0=9F=90=9B=20Fix:=20=E4=BF=AE=E5=A4=8D=E5=8D=95?= =?UTF-8?q?=E8=AF=8D=E8=A2=AB=E6=88=AA=E6=96=AD=EF=BC=8C=E4=B8=8D=E8=87=AA?= =?UTF-8?q?=E5=8A=A8=E6=8D=A2=E8=A1=8C=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/matcha/matcha.post.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/matcha/matcha.post.css b/assets/matcha/matcha.post.css index bd5aeeb..bb2b8e5 100644 --- a/assets/matcha/matcha.post.css +++ b/assets/matcha/matcha.post.css @@ -33,7 +33,6 @@ .post-title-atpage { font-size: 1.7em; margin-top: .9em; - font-weight: 400; position: relative; font-weight: 700 } @@ -112,6 +111,7 @@ .post-content,.comment-content { line-height: 1.5; word-wrap: break-word; + word-break: break-word; } .post-content h2, -- cgit v1.2.3 From 36689bdcebc96c83ad050f1b26cac6b12c5f47a8 Mon Sep 17 00:00:00 2001 From: Forev3rNAlway5 <14688720+Forev3rNAlway5@users.noreply.github.com> Date: Fri, 10 Mar 2023 16:01:31 +0800 Subject: =?UTF-8?q?Fix:=20=E4=BF=AE=E5=A4=8D=E5=88=97=E8=A1=A8=E6=A0=B7?= =?UTF-8?q?=E5=BC=8F=E6=98=BE=E7=A4=BA=E4=B8=8D=E6=AD=A3=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/matcha/matcha.post.css | 22 +++++++++------------- 1 file changed, 9 insertions(+), 13 deletions(-) diff --git a/assets/matcha/matcha.post.css b/assets/matcha/matcha.post.css index bd5aeeb..6894771 100644 --- a/assets/matcha/matcha.post.css +++ b/assets/matcha/matcha.post.css @@ -180,27 +180,23 @@ padding-left: 1.2em!important } -.post-content ul li, -.comment-content ul li { +.post-content ul, +.comment-content ul { list-style-type: square } -.post-content ol li, -.comment-content ol li { +.post-content ol, +.comment-content ol { list-style-type: decimal } -.post-content ul>ul li, -.post-content ol>ul li, -.comment-content ul>ul li, -.comment-content ol>ul li { +.post-content li ul, +.comment-content li ul { list-style-type: disc } -.post-content ol>ol li, -.post-content ul>ol li, -.comment-content ol>ol li, -.comment-content ul>ol li { +.post-content li ol, +.comment-content li ol { list-style-type: lower-roman } @@ -689,4 +685,4 @@ font-size: .9em; margin-right: .12em; color: var(--gray-bg) -} \ No newline at end of file +} -- cgit v1.2.3 From 41e909ebcd60e8fe592b7c485bb6a8851da6d392 Mon Sep 17 00:00:00 2001 From: LiCaoZ Date: Thu, 16 Mar 2023 20:39:40 +0800 Subject: =?UTF-8?q?:bug:=20Fix:=20=E8=AF=84=E8=AE=BA=E6=A8=A1=E5=9D=97?= =?UTF-8?q?=E3=80=8C=E9=80=80=E5=87=BA=E3=80=8D=E6=8C=89=E9=92=AE=E5=A4=B1?= =?UTF-8?q?=E6=95=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- includes/comments.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/comments.php b/includes/comments.php index 0790a9c..783f8c4 100644 --- a/includes/comments.php +++ b/includes/comments.php @@ -75,7 +75,7 @@ Comments::replyScript($this); ?> author->gravatar(32); ?>
user->screenName(); ?>
- +
-- cgit v1.2.3 From bab4d4645aa09db5caccd6ea11f9458eef9fe2ac Mon Sep 17 00:00:00 2001 From: LiCaoZ Date: Thu, 16 Mar 2023 20:56:21 +0800 Subject: =?UTF-8?q?:bug:=20Fix:=20=E9=81=B5=E5=BE=AA=20Typecho=20=E8=AE=BE?= =?UTF-8?q?=E7=BD=AE=E3=80=8C=E5=BF=85=E9=A1=BB=E5=A1=AB=E5=86=99=E9=82=AE?= =?UTF-8?q?=E7=AE=B1=E3=80=8D=E9=80=89=E9=A1=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/matcha/matcha.comment.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/assets/matcha/matcha.comment.js b/assets/matcha/matcha.comment.js index b94c42b..50a911a 100644 --- a/assets/matcha/matcha.comment.js +++ b/assets/matcha/matcha.comment.js @@ -40,11 +40,18 @@ matchaComment.core = function() { return false; } - if($('#comment-form [name="author"]').length && (!$('#comment-form [name="author"]').val().length>0 || !$('#comment-form [name="mail"]').val().length>0)) { + // 如果 mail 有 required 属性,则要求填写用户名和邮箱 + if($('#comment-form [name="mail"]').attr('required') && (!$('#comment-form [name="author"]').val().length>0 || !$('#comment-form [name="mail"]').val().length>0)) { Toaster.error('用户名和邮箱不能为空'); return false; } + // 如果 mail 没有 required 属性,则仅要求用户名不能为空 + if(!$('#comment-form [name="mail"]').attr('required') && !$('#comment-form [name="author"]').val().length>0) { + Toaster.error('用户名不能为空'); + return false; + } + //发送 POST 之前的操作 matchaComment.before(); //POST 基本信息 -- cgit v1.2.3 From 02947175352b377114bf3e4c7bf524cc02cf937b Mon Sep 17 00:00:00 2001 From: LiCaoZ Date: Thu, 16 Mar 2023 21:22:20 +0800 Subject: =?UTF-8?q?:newspaper:=20Feat:=20=E6=94=AF=E6=8C=81=E5=88=86?= =?UTF-8?q?=E7=B1=BB=E5=AF=BC=E8=88=AA=20&=20=E9=83=A8=E5=88=86=E5=AF=BC?= =?UTF-8?q?=E8=88=AA=E9=80=BB=E8=BE=91=E9=87=8D=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- includes/header.php | 2 +- includes/sidebar.php | 6 +++++- libs/Matcha.php | 25 +++++++++++++++++++++---- libs/Options.php | 12 ++++++++++++ 4 files changed, 39 insertions(+), 6 deletions(-) diff --git a/includes/header.php b/includes/header.php index a74b47a..c1cf591 100644 --- a/includes/header.php +++ b/includes/header.php @@ -18,7 +18,7 @@ $this->need("includes/head.php"); ?>