fix: display of codeblock on mobile
This commit is contained in:
parent
b8d3ba85f5
commit
aa98b5b62f
1 changed files with 2 additions and 2 deletions
|
|
@ -28,9 +28,9 @@ export function ChatMessage({ message, ...props }: ChatMessageProps) {
|
|||
>
|
||||
{message.role === 'user' ? <IconUser /> : <IconOpenAI />}
|
||||
</div>
|
||||
<div className="ml-4 flex-1 space-y-2 px-1">
|
||||
<div className="ml-4 flex-1 space-y-2 overflow-hidden px-1">
|
||||
<MemoizedReactMarkdown
|
||||
className="prose dark:prose-invert prose-p:leading-relaxed prose-pre:p-0"
|
||||
className="prose break-words dark:prose-invert prose-p:leading-relaxed prose-pre:p-0"
|
||||
remarkPlugins={[remarkGfm, remarkMath]}
|
||||
components={{
|
||||
p({ children }) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue