From 11a76ae90fa349fb1a18c390f97d739b88929fb5 Mon Sep 17 00:00:00 2001 From: icarus Date: Wed, 24 Sep 2025 18:27:26 +0800 Subject: [PATCH] fix(AgentModal): improve modal layout and fix description field position Adjust modal height and overflow behavior Move description textarea below prompt field for better logical flow --- .../components/Popups/agent/AgentModal.tsx | 58 +++++++++++-------- 1 file changed, 33 insertions(+), 25 deletions(-) diff --git a/src/renderer/src/components/Popups/agent/AgentModal.tsx b/src/renderer/src/components/Popups/agent/AgentModal.tsx index ebce1b05d2..8dec33d0ee 100644 --- a/src/renderer/src/components/Popups/agent/AgentModal.tsx +++ b/src/renderer/src/components/Popups/agent/AgentModal.tsx @@ -385,30 +385,38 @@ export const AgentModal: React.FC = ({ agent, trigger, isOpen: _isOpen, o {trigger.content} )} - + {(onClose) => ( <> {isEditing(agent) ? t('agent.edit.title') : t('agent.add.title')} -
- - - + + +
+ + +
-