Skip to content

armgit / cindy

Public Imported from GitHub
0

Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。

fix(mobile): 代码着色直接复用原生文本组件判据

Dashfe383485cedd
diff --git a/apps/mobile/src/session/MessageRenderer.tsx b/apps/mobile/src/session/MessageRenderer.tsx
index dddc3d606d..47f586ed0a 100644
--- a/apps/mobile/src/session/MessageRenderer.tsx
+++ b/apps/mobile/src/session/MessageRenderer.tsx
@@ -6073,7 +6073,7 @@ function MarkdownBodyBase({
]}
>
<HighlightedCodeText
- SpanComponent={singleBlockSpanFor(selectable === true) ?? Text}
+ SpanComponent={spanFor(selectable === true && singleBlockAllowsIosUITextView) ?? Text}
allowIosUITextView={singleBlockAllowsIosUITextView}
language={block.language}
selectable={selectable === true}