diff --git a/frontend/app/[locale]/agents/components/AgentSelectorHeader.tsx b/frontend/app/[locale]/agents/components/AgentSelectorHeader.tsx index c7e1d2e8e..7f23f6ddc 100644 --- a/frontend/app/[locale]/agents/components/AgentSelectorHeader.tsx +++ b/frontend/app/[locale]/agents/components/AgentSelectorHeader.tsx @@ -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)', } }} > @@ -614,12 +613,12 @@ export default function AgentSelectorHeader({
{isCreatingMode - ? t("subAgentPool.button.create") + ? t("agent.action.create") : currentAgent?.display_name || currentAgent?.name || t("agentConfig.agents.selectAgent")}
{isCreatingMode - ? t("subAgentPool.button.create") + ? t("agent.action.createOrSelect") : currentAgent?.description || t("agentConfig.agents.noAgentSelected")}
diff --git a/frontend/public/locales/en/common.json b/frontend/public/locales/en/common.json index 8ca717260..3b8266d61 100644 --- a/frontend/public/locales/en/common.json +++ b/frontend/public/locales/en/common.json @@ -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", diff --git a/frontend/public/locales/zh/common.json b/frontend/public/locales/zh/common.json index bacb6cbea..c45e0f765 100644 --- a/frontend/public/locales/zh/common.json +++ b/frontend/public/locales/zh/common.json @@ -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": "查看调用关系",