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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 4 additions and 6 deletions

View File

@ -69,7 +69,7 @@ export const App = ({ config }: AppProps) => {
});
return (
<Box flexDirection="column" padding={1} marginBottom={1} width="100%">
<Box flexDirection="column" marginBottom={1} width="100%">
<Header />
{startupWarnings.length > 0 && (

View File

@ -38,9 +38,6 @@ export const GeminiMessage: React.FC<GeminiMessageProps> = ({ text }) => {
return (
<Box flexDirection="row">
<Box width={prefixWidth}>
<Text color={Colors.AccentPurple}>{prefix}</Text>
</Box>
<Box flexGrow={1} flexDirection="column">
{renderedBlocks}
</Box>

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>