From a7446168849ff58d953df9c795c141c95c468085 Mon Sep 17 00:00:00 2001 From: Snowykami Date: Wed, 24 Sep 2025 09:57:07 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E8=B0=83=E6=95=B4=E8=AF=84=E8=AE=BA?= =?UTF-8?q?=E8=BE=93=E5=85=A5=E6=A1=86=E7=9A=84=E6=B8=B2=E6=9F=93=E9=A1=BA?= =?UTF-8?q?=E5=BA=8F=EF=BC=8C=E7=A1=AE=E4=BF=9D=E4=B8=80=E6=AC=A1=E5=8F=AA?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E4=B8=80=E4=B8=AA=E8=BE=93=E5=85=A5=E6=A1=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/components/comment/comment-item.tsx | 27 ++++++++++----------- 1 file changed, 13 insertions(+), 14 deletions(-) diff --git a/web/src/components/comment/comment-item.tsx b/web/src/components/comment/comment-item.tsx index e639961..58cdf20 100644 --- a/web/src/components/comment/comment-item.tsx +++ b/web/src/components/comment/comment-item.tsx @@ -276,22 +276,21 @@ export function CommentItem( - {/* 这俩输入框一次只能显示一个 */} - {activeInput && activeInput.type === 'reply' && activeInput.id === commentState.id && } - {activeInput && activeInput.type === 'edit' && activeInput.id === commentState.id && } - + {/* 这俩输入框一次只能显示一个 */} + {activeInput && activeInput.type === 'reply' && activeInput.id === commentState.id && } + {activeInput && activeInput.type === 'edit' && activeInput.id === commentState.id && } {showReplies && replies.length > 0 && (
{replies.map((reply) => (