mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-19 22:52:08 +08:00
refactor: simplify MessageAgentTools component structure by removing unnecessary wrapper div
This commit is contained in:
parent
e0f383a050
commit
fc64b6c611
@ -75,14 +75,13 @@ function renderToolContent(toolName: AgentToolsType, input: ToolInput, output?:
|
|||||||
}, [Renderer, input, output, toolName])
|
}, [Renderer, input, output, toolName])
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="w-max max-w-full rounded-md bg-foreground-100 py-1 transition-all duration-300 ease-in-out dark:bg-foreground-100">
|
|
||||||
<Collapse
|
<Collapse
|
||||||
className="w-max max-w-full"
|
className="w-max max-w-full"
|
||||||
expandIconPosition="end"
|
expandIconPosition="end"
|
||||||
|
size="small"
|
||||||
defaultActiveKey={toolName === AgentToolsType.TodoWrite ? [AgentToolsType.TodoWrite] : []}
|
defaultActiveKey={toolName === AgentToolsType.TodoWrite ? [AgentToolsType.TodoWrite] : []}
|
||||||
items={[toolContentItem]}
|
items={[toolContentItem]}
|
||||||
/>
|
/>
|
||||||
</div>
|
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user