From 449011e60ba2c7bc9c91d6956e4de8fc3c502d82 Mon Sep 17 00:00:00 2001 From: Jiang Bohan Date: Tue, 31 Mar 2026 19:25:31 +0800 Subject: [PATCH] fix(issues): use Markdown component for read-only comment display The RichTextEditor in read-only mode doesn't support IssueMentionCard rendering for issue mentions with status, title, and navigation. Switch to the Markdown component which already handles mention://issue/ links with the IssueMentionCard component. --- apps/web/features/issues/components/comment-card.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/web/features/issues/components/comment-card.tsx b/apps/web/features/issues/components/comment-card.tsx index b08b582a..ebea665a 100644 --- a/apps/web/features/issues/components/comment-card.tsx +++ b/apps/web/features/issues/components/comment-card.tsx @@ -21,6 +21,7 @@ import { cn } from "@/lib/utils"; import { useActorName } from "@/features/workspace"; import { timeAgo } from "@/shared/utils"; import { RichTextEditor, type RichTextEditorRef } from "@/components/common/rich-text-editor"; +import { Markdown } from "@/components/markdown/Markdown"; import { FileUploadButton } from "@/components/common/file-upload-button"; import { useFileUpload } from "@/shared/hooks/use-file-upload"; import { ReplyInput } from "./reply-input"; @@ -190,7 +191,7 @@ function CommentRow({ ) : ( <>
- + {entry.content ?? ""}
{!isTemp && (
- + {entry.content ?? ""}
{!isTemp && (