refactor(mcp): improve form modal layout with adaptive height editor

Restructure MCP form modal for better space utilization.
- Split form into upper form fields and lower JSON editor sections
- Add full-height mode support for JsonEditor component
- Use flex layout for editor to fill available space
- Update PromptFormPanel to use full-height editor
- Fix locale text formatting
This commit is contained in:
YoVinchen
2025-11-22 16:11:06 +08:00
parent 99471f6706
commit 4ed3e3bf84
3 changed files with 231 additions and 217 deletions

View File

@@ -142,7 +142,7 @@ const PromptFormPanel: React.FC<PromptFormPanelProps> = ({
onChange={setContent}
placeholder={t("prompts.contentPlaceholder", { filename })}
darkMode={isDarkMode}
minHeight="500px"
minHeight="167px"
/>
</div>
</div>