diff --git a/src/components/comment/CommentContent/index.tsx b/src/components/comment/CommentContent/index.tsx index 17f1eac1..38cef4a8 100644 --- a/src/components/comment/CommentContent/index.tsx +++ b/src/components/comment/CommentContent/index.tsx @@ -70,8 +70,15 @@ const CommentContent: FC = memo( }, [comment, onDelete]); const menu = useMemo( - () => - canEdit && , + () => ( +
+ {canEdit && ( + + + + )} +
+ ), [canEdit, startEditing, onLockClick], ); @@ -97,9 +104,10 @@ const CommentContent: FC = memo( return (
{!!prefix &&
{prefix}
} + {comment.text.trim() && ( - {menu} + {menu} {blocks.map(