forked from prehistoric-systems/chatpad
add scroll to code block
This commit is contained in:
parent
9baa8c7d4e
commit
0bd77b0877
2 changed files with 2 additions and 1 deletions
|
|
@ -22,7 +22,7 @@ export function MessageItem({ message }: { message: Message }) {
|
|||
</ThemeIcon>
|
||||
)}
|
||||
{message.role === "assistant" && <LogoIcon style={{ height: 32 }} />}
|
||||
<Box sx={{ flex: 1 }} className="markdown">
|
||||
<Box sx={{ flex: 1, width: 0 }} className="markdown">
|
||||
<ReactMarkdown children={message.content} />
|
||||
</Box>
|
||||
<Box>
|
||||
|
|
|
|||
|
|
@ -8,6 +8,7 @@
|
|||
}
|
||||
}
|
||||
pre {
|
||||
overflow-x: auto;
|
||||
padding: 8px 12px;
|
||||
border-radius: 8px;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue