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) => (