diff --git a/src/components/mcp/McpFormModal.tsx b/src/components/mcp/McpFormModal.tsx index 2bb0ff2..f1dec70 100644 --- a/src/components/mcp/McpFormModal.tsx +++ b/src/components/mcp/McpFormModal.tsx @@ -241,9 +241,9 @@ const McpFormModal: React.FC = ({ /> {/* Modal */} -
+
{/* Header */} -
+

{getFormTitle()}

@@ -255,8 +255,8 @@ const McpFormModal: React.FC = ({
- {/* Content */} -
+ {/* Content - Scrollable */} +
{/* 预设选择(仅新增时展示) */} {!isEditing && (
@@ -356,7 +356,7 @@ const McpFormModal: React.FC = ({
{/* Footer */} -
+
diff --git a/src/components/mcp/McpPanel.tsx b/src/components/mcp/McpPanel.tsx index ff19b71..ec0ab44 100644 --- a/src/components/mcp/McpPanel.tsx +++ b/src/components/mcp/McpPanel.tsx @@ -1,6 +1,6 @@ import React, { useEffect, useMemo, useState } from "react"; import { useTranslation } from "react-i18next"; -import { X, Plus, Server } from "lucide-react"; +import { X, Plus, Server, Check } from "lucide-react"; import { McpServer } from "../../types"; import McpListItem from "./McpListItem"; import McpFormModal from "./McpFormModal"; @@ -241,12 +241,23 @@ const McpPanel: React.FC = ({ onClose, onNotify, appType }) => { /> ))} - {/* 预设已移至“新增 MCP”面板中展示与套用 */} + {/* 预设已移至"新增 MCP"面板中展示与套用 */}
); })() )}
+ + {/* Footer */} +
+ +
{/* Form Modal */} diff --git a/src/i18n/locales/en.json b/src/i18n/locales/en.json index 3b099b3..e36c4b0 100644 --- a/src/i18n/locales/en.json +++ b/src/i18n/locales/en.json @@ -12,6 +12,7 @@ "cancel": "Cancel", "confirm": "Confirm", "close": "Close", + "done": "Done", "settings": "Settings", "about": "About", "version": "Version", diff --git a/src/i18n/locales/zh.json b/src/i18n/locales/zh.json index c676a97..5a45aa5 100644 --- a/src/i18n/locales/zh.json +++ b/src/i18n/locales/zh.json @@ -12,6 +12,7 @@ "cancel": "取消", "confirm": "确定", "close": "关闭", + "done": "完成", "settings": "设置", "about": "关于", "version": "版本",