refactor(mcp): improve UI consistency and i18n

- Add MCP-specific green button style (buttonStyles.mcp)
- Unify MCP panel and form buttons with emerald theme
- Adjust MCP entry button width to match AppSwitcher (px-3)
- Reduce JSON editor height from h-64 to h-48
- Update translations: "Add/Edit Server" → "Add/Edit MCP"
- Change form label to "MCP Title (Unique)" for clarity
- Move config wizard button to right side of JSON label
- Fix McpListItem enabled state check (explicit true check)
This commit is contained in:
Jason
2025-10-10 11:58:40 +08:00
parent 7493f3f9dd
commit 7f1131dfae
7 changed files with 24 additions and 20 deletions

View File

@@ -258,21 +258,21 @@
"empty": "No MCP servers",
"emptyDescription": "Click the button in the top right to add your first MCP server",
"add": "Add MCP",
"addServer": "Add Server",
"editServer": "Edit Server",
"addServer": "Add MCP",
"editServer": "Edit MCP",
"configPath": "Config Path",
"serverCount": "{{count}} MCP server(s) configured",
"template": {
"fetch": "Quick Template: mcp-fetch"
},
"form": {
"title": "Server Title",
"title": "MCP Title (Unique)",
"titlePlaceholder": "my-mcp-server",
"description": "Description",
"descriptionPlaceholder": "Optional description",
"jsonConfig": "JSON Configuration",
"jsonPlaceholder": "{\n \"type\": \"stdio\",\n \"command\": \"uvx\",\n \"args\": [\"mcp-server-fetch\"]\n}",
"useWizard": "or use configuration wizard"
"useWizard": "Config Wizard"
},
"wizard": {
"title": "MCP Configuration Wizard",