mirror of
https://gitee.com/wanwujie/deer-flow
synced 2026-04-19 12:24:46 +08:00
feat: limit the max width
This commit is contained in:
@@ -286,8 +286,8 @@ function PythonToolCall({ toolCall }: { toolCall: ToolCallRuntime }) {
|
|||||||
Running Python code
|
Running Python code
|
||||||
</RainbowText>
|
</RainbowText>
|
||||||
</div>
|
</div>
|
||||||
<div className="px-5">
|
<div>
|
||||||
<div className="bg-accent mt-2 max-h-[400px] w-[800px] overflow-y-auto rounded-md p-2 text-sm">
|
<div className="bg-accent mt-2 max-h-[400px] max-w-[calc(100%-120px)] overflow-y-auto rounded-md p-2 text-sm">
|
||||||
<SyntaxHighlighter
|
<SyntaxHighlighter
|
||||||
language="python"
|
language="python"
|
||||||
style={resolvedTheme === "dark" ? dark : docco}
|
style={resolvedTheme === "dark" ? dark : docco}
|
||||||
@@ -328,7 +328,7 @@ function MCPToolCall({ toolCall }: { toolCall: ToolCallRuntime }) {
|
|||||||
</AccordionTrigger>
|
</AccordionTrigger>
|
||||||
<AccordionContent>
|
<AccordionContent>
|
||||||
{toolCall.result && (
|
{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
|
<SyntaxHighlighter
|
||||||
language="json"
|
language="json"
|
||||||
style={resolvedTheme === "dark" ? dark : docco}
|
style={resolvedTheme === "dark" ? dark : docco}
|
||||||
|
|||||||
Reference in New Issue
Block a user