A Q&A platform software for teams at any scales. Whether it's a community forum, help center, or knowledge management platform, you can always count on Apache Answer.
fix: review kbd cannot render as tag
shuai583bd34f1c7c
diff --git a/ui/src/pages/Review/index.tsx b/ui/src/pages/Review/index.tsxindex 132d433d..f169e7bf 100644--- a/ui/src/pages/Review/index.tsx+++ b/ui/src/pages/Review/index.tsx@@ -135,7 +135,9 @@ const Index: FC = () => {<Col lg={{ span: 7, offset: 1 }}><Alert variant="secondary"><Stack className="align-items-start">- <span className="badge text-bg-secondary">{editBadge}</span>+ <span className="badge text-bg-secondary mb-2">+ {editBadge}+ </span><Link to={itemLink} target="_blank">{itemTitle}</Link>diff --git a/ui/src/utils/common.ts b/ui/src/utils/common.tsindex 1b8ac340..29f8ee30 100644--- a/ui/src/utils/common.ts+++ b/ui/src/utils/common.ts@@ -190,6 +190,8 @@ function diffText(newText: string, oldText: string): string {return result.join('')?.replace(/<iframe/gi, '<iframe')+ ?.replace(/<kbd/gi, '<kbd')+ ?.replace(/<\/kbd>/gi, '</kbd>')?.replace(/<input/gi, '<input');}