Skip to content
Merged
Original file line number Diff line number Diff line change
Expand Up @@ -594,9 +594,8 @@ export default function AgentSelectorHeader({
}}
getPopupContainer={(triggerNode) => triggerNode.parentNode as HTMLElement}
styles={{
root: {
minWidth: 0,
width: '100%',
root: {
width: 'calc(100% - 32px)',
}
Comment thread
WMC001 marked this conversation as resolved.
}}
>
Expand All @@ -614,12 +613,12 @@ export default function AgentSelectorHeader({
<div className="flex-1 min-w-0 mx-2">
<div className="text-lg font-medium text-gray-900 leading-tight mb-2">
{isCreatingMode
? t("subAgentPool.button.create")
? t("agent.action.create")
: currentAgent?.display_name || currentAgent?.name || t("agentConfig.agents.selectAgent")}
</div>
<div className="text-sm text-gray-500 leading-tight truncate">
{isCreatingMode
? t("subAgentPool.button.create")
? t("agent.action.createOrSelect")
: currentAgent?.description || t("agentConfig.agents.noAgentSelected")}
Comment thread
WMC001 marked this conversation as resolved.
</div>
</div>
Expand Down
1 change: 1 addition & 0 deletions frontend/public/locales/en/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -356,6 +356,7 @@
"agent.prompts.noPermission": "You do not have permission to view prompts.",
"mcpConfig.permission.noEdit": "No permission to edit MCP",
"agent.action.create": "Create Agent",
"agent.action.createOrSelect": "Create Agent or Use Dropdown to Select Another Agent",
"agent.action.modify": "Edit Agent Information",
"agent.action.view": "View Agent Information",
"agent.action.viewCallRelationship": "View Call Relationship",
Expand Down
1 change: 1 addition & 0 deletions frontend/public/locales/zh/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -358,6 +358,7 @@
"agent.prompts.noPermission": "您无权查看提示词内容。",
"mcpConfig.permission.noEdit": "无MCP编辑权限",
"agent.action.create": "创建智能体",
"agent.action.createOrSelect": "创建智能体或下拉选择一个智能体",
"agent.action.modify": "编辑智能体信息",
"agent.action.view": "查看智能体信息",
"agent.action.viewCallRelationship": "查看调用关系",
Expand Down
Loading