feat: adjust form style

This commit is contained in:
Kadxy 2025-01-16 09:11:53 +08:00
parent 4d63d73b2e
commit d4f499ee41

View File

@ -140,7 +140,7 @@ export function McpMarketPage() {
setUserConfig({}); setUserConfig({});
} }
} }
}, [editingServerId, config]); }, [editingServerId, config, presetServers]);
// 保存服务器配置 // 保存服务器配置
const saveServerConfig = async () => { const saveServerConfig = async () => {
@ -405,14 +405,9 @@ export function McpMarketPage() {
} else if (prop.type === "string") { } else if (prop.type === "string") {
const currentValue = userConfig[key as keyof typeof userConfig] || ""; const currentValue = userConfig[key as keyof typeof userConfig] || "";
return ( return (
<ListItem <ListItem key={key} title={key} subTitle={prop.description}>
key={key}
title={key}
subTitle={prop.description}
vertical
>
<div className={styles["input-item"]}>
<input <input
aria-label={key}
type="text" type="text"
value={currentValue} value={currentValue}
placeholder={`Enter ${key}`} placeholder={`Enter ${key}`}
@ -420,7 +415,6 @@ export function McpMarketPage() {
setUserConfig({ ...userConfig, [key]: e.target.value }); setUserConfig({ ...userConfig, [key]: e.target.value });
}} }}
/> />
</div>
</ListItem> </ListItem>
); );
} }