mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-04-30 20:50:34 +00:00
Make model-generated code copyable (#70)
This commit is contained in:
parent
8180ed9a68
commit
9d608135e3
3 changed files with 4 additions and 6 deletions
|
|
@ -160,11 +160,12 @@ export class MarkdownRenderer {
|
|||
<Box
|
||||
key={key}
|
||||
borderStyle="round"
|
||||
paddingX={1}
|
||||
borderColor={Colors.SubtleComment}
|
||||
borderLeft={false}
|
||||
borderRight={false}
|
||||
flexDirection="column"
|
||||
>
|
||||
{lang && <Text dimColor> {lang}</Text>}
|
||||
{lang && <Text dimColor>{lang}</Text>}
|
||||
{/* Render each line preserving whitespace (within Text component) */}
|
||||
{content.map((line, idx) => (
|
||||
<Text key={idx}>{line}</Text>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue