From 10e49ebdcd228e31299aa75e0ee92e628d256398 Mon Sep 17 00:00:00 2001 From: BeiyanYunyi <14120445+BeiyanYunyi@users.noreply.github.com> Date: Tue, 19 Dec 2023 22:53:53 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Avatar=20should=20not=20be=20shr?= =?UTF-8?q?inked?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/CommentCard.tsx | 2 +- src/controllers/commentBoxState.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/CommentCard.tsx b/src/components/CommentCard.tsx index 2eb7048..3a6c60f 100644 --- a/src/components/CommentCard.tsx +++ b/src/components/CommentCard.tsx @@ -24,7 +24,7 @@ const CommentCard: Component<{ content: ReactiveComment; rootId: string }> = (pr const { locale, commentClassName } = configProvider; const time = createMemo(() => getTimeAgo(new Date(props.content.time), now(), locale())); return ( -
+
{props.content.nick} diff --git a/src/controllers/commentBoxState.ts b/src/controllers/commentBoxState.ts index 26a4187..7c4fb8b 100644 --- a/src/controllers/commentBoxState.ts +++ b/src/controllers/commentBoxState.ts @@ -186,6 +186,7 @@ export const submitComment = () => { target.setComment(resComment.comment); if (resComment.orig) target.setOrig(resComment.orig); setEdit(null); + clearReplyState(); } else if (resComment.rid) { const target = data().find((item) => item.objectId === resComment.rid); if (!target) return null;