mirror of
https://git.mirrors.martin98.com/https://github.com/bytedance/deer-flow
synced 2025-10-04 09:46:29 +08:00
feat: limit the max width
This commit is contained in:
parent
17c342020e
commit
c527fb63a3
@ -286,8 +286,8 @@ function PythonToolCall({ toolCall }: { toolCall: ToolCallRuntime }) {
|
||||
Running Python code
|
||||
</RainbowText>
|
||||
</div>
|
||||
<div className="px-5">
|
||||
<div className="bg-accent mt-2 max-h-[400px] w-[800px] overflow-y-auto rounded-md p-2 text-sm">
|
||||
<div>
|
||||
<div className="bg-accent mt-2 max-h-[400px] max-w-[calc(100%-120px)] overflow-y-auto rounded-md p-2 text-sm">
|
||||
<SyntaxHighlighter
|
||||
language="python"
|
||||
style={resolvedTheme === "dark" ? dark : docco}
|
||||
@ -328,7 +328,7 @@ function MCPToolCall({ toolCall }: { toolCall: ToolCallRuntime }) {
|
||||
</AccordionTrigger>
|
||||
<AccordionContent>
|
||||
{toolCall.result && (
|
||||
<div className="bg-accent max-h-[400px] w-[800px] overflow-y-auto rounded-md text-sm">
|
||||
<div className="bg-accent max-h-[400px] max-w-[560px] overflow-y-auto rounded-md text-sm">
|
||||
<SyntaxHighlighter
|
||||
language="json"
|
||||
style={resolvedTheme === "dark" ? dark : docco}
|
||||
|
Loading…
x
Reference in New Issue
Block a user