mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-24 10:40:07 +08:00
style: optimize mcp arg name display layout
This commit is contained in:
parent
e227fbf821
commit
9f2ac4aa81
@ -22,7 +22,7 @@ const MCPPromptsSection = ({ prompts }: MCPPromptsSectionProps) => {
|
||||
<Descriptions.Item
|
||||
key={index}
|
||||
label={
|
||||
<Flex align="center" gap={8}>
|
||||
<Flex vertical gap={4}>
|
||||
<Typography.Text strong>{arg.name}</Typography.Text>
|
||||
{arg.required && (
|
||||
<Tooltip title="Required field">
|
||||
|
||||
@ -51,7 +51,7 @@ const MCPToolsSection = ({ tools, server, onToggleTool }: MCPToolsSectionProps)
|
||||
<Descriptions.Item
|
||||
key={key}
|
||||
label={
|
||||
<Flex align="center" gap={8}>
|
||||
<Flex vertical gap={4}>
|
||||
<Typography.Text strong>{key}</Typography.Text>
|
||||
{tool.inputSchema.required?.includes(key) && (
|
||||
<Tooltip title="Required field">
|
||||
|
||||
Loading…
Reference in New Issue
Block a user