Merge pull request #276 from devchat-ai/107-scroll-left-and-right-on-code-contexts

Add ScrollArea to InputContexts component
This commit is contained in:
Rankin Zheng 2023-08-29 22:28:37 -05:00 committed by GitHub
commit cc4df24c28
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -81,13 +81,15 @@ const InputContexts = observer(() => {
</ActionIcon>
</Box>
<Accordion.Panel>
{
content
? <pre style={{ overflowWrap: 'normal', fontSize: 'var(--vscode-editor-font-size)', margin: 0 }}>{content}</pre>
: <Center>
<Text c='gray.3'>No content</Text>
</Center>
}
<ScrollArea type="auto">
{
content
? <pre style={{ overflowWrap: 'normal', fontSize: 'var(--vscode-editor-font-size)', margin: 0 }}>{content}</pre>
: <Center>
<Text c='gray.3'>No content</Text>
</Center>
}
</ScrollArea>
</Accordion.Panel>
</Accordion.Item>
);