refactor(mcp): improve form label layout and simplify text

- Simplify config label from "Full JSON configuration or use" to "Full JSON Configuration"
- Align wizard button to the right using justify-between layout
- Apply same pattern to TOML configuration label
- Improve visual balance with cleaner left-right alignment
This commit is contained in:
Jason
2025-11-16 16:59:23 +08:00
parent ed59420a83
commit f79efb86cd
3 changed files with 7 additions and 7 deletions

View File

@@ -651,11 +651,11 @@ const McpFormModal: React.FC<McpFormModalProps> = ({
{/* 配置输入框(根据格式显示 JSON 或 TOML */}
<div>
<div className="flex items-baseline gap-1 mb-2">
<div className="flex items-center justify-between mb-2">
<label className="text-sm font-medium text-gray-700 dark:text-gray-300">
{useToml
? t("mcp.form.tomlConfigOrPrefix")
: t("mcp.form.jsonConfigOrPrefix")}
? t("mcp.form.tomlConfig")
: t("mcp.form.jsonConfig")}
</label>
{(isEditing || selectedPreset === -1) && (
<button