Make model-generated code copyable (#70)
This commit is contained in:
parent
8180ed9a68
commit
9d608135e3
|
@ -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 && (
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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…
Reference in New Issue