refactor(business): simplify text rendering in PostContentRenderer
Some checks failed
Frontend CI / build-and-push-web (push) Failing after 1m4s
Frontend CI / ota-ios (push) Successful in 1m35s
Frontend CI / ota-android (push) Successful in 1m35s
Frontend CI / build-android-apk (push) Failing after 16m3s

Remove redundant `<Text>` wrapper when keyword highlighting is not applied
to improve rendering efficiency and consistency.
This commit is contained in:
2026-05-08 23:49:42 +08:00
parent 81ee9ba75b
commit d0ea2c5aea

View File

@@ -162,7 +162,7 @@ const PostContentRenderer: React.FC<PostContentRendererProps> = ({
return highlightKeyword ? ( return highlightKeyword ? (
<HighlightText key={segKey} text={text} keyword={highlightKeyword} style={highlightStyle} /> <HighlightText key={segKey} text={text} keyword={highlightKeyword} style={highlightStyle} />
) : ( ) : (
<Text key={segKey}>{text}</Text> text
); );
} }
case 'at': { case 'at': {