Make model-generated code copyable (#70)

This commit is contained in:
Juliette Love
2025-04-20 21:48:30 +01:00
committed by GitHub
parent 8180ed9a68
commit 9d608135e3
3 changed files with 4 additions and 6 deletions

View File

@@ -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>