feat: limit the max width

This commit is contained in:
Li Xin
2025-04-25 13:57:52 +08:00
parent 17c342020e
commit c527fb63a3

View File

@@ -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}