Skip to content

Commit 6a75316

Browse files
authored
🐛 Set the agent configuration page outer scrollbar to be hidden and the inner scrollbar to be displayed
2 parents ed72b99 + 02db778 commit 6a75316

File tree

4 files changed

+41
-8
lines changed

4 files changed

+41
-8
lines changed

frontend/app/[locale]/agents/AgentConfiguration.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -546,6 +546,7 @@ export default forwardRef<AgentConfigHandle, AgentConfigProps>(function AgentCon
546546
style={{
547547
height: SETUP_PAGE_CONTAINER.MAIN_CONTENT_HEIGHT,
548548
...STANDARD_CARD.CONTENT_SCROLL,
549+
overflow: "hidden"
549550
}}
550551
>
551552
<div style={{ padding: STANDARD_CARD.PADDING, height: "100%" }}>

frontend/app/[locale]/agents/components/AgentSetupOrchestrator.tsx

Lines changed: 33 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2099,9 +2099,22 @@ export default function AgentSetupOrchestrator({
20992099
<TooltipProvider>
21002100
<div className="h-full relative px-2">
21012101
{/* Three-column layout using Ant Design Grid */}
2102-
<Row gutter={[16, 16]} className="h-full">
2102+
<Row
2103+
gutter={[16, 16]}
2104+
className="h-full"
2105+
align="stretch"
2106+
style={{ minHeight: 0 }}
2107+
>
21032108
{/* Left column: SubAgentPool */}
2104-
<Col xs={24} sm={24} md={24} lg={24} xl={8} className="flex flex-col" style={{ minHeight: '400px' }}>
2109+
<Col
2110+
xs={24}
2111+
sm={24}
2112+
md={24}
2113+
lg={24}
2114+
xl={8}
2115+
className="flex flex-col h-full"
2116+
style={{ height: "100%", minHeight: 0 }}
2117+
>
21052118
<SubAgentPool
21062119
onEditAgent={(agent) => handleEditAgent(agent, t)}
21072120
onCreateNewAgent={() => confirmOrRun(handleCreateNewAgent)}
@@ -2125,7 +2138,15 @@ export default function AgentSetupOrchestrator({
21252138
</Col>
21262139

21272140
{/* Middle column: Agent capability configuration */}
2128-
<Col xs={24} sm={24} md={24} lg={24} xl={8} className="flex flex-col" style={{ minHeight: '400px' }}>
2141+
<Col
2142+
xs={24}
2143+
sm={24}
2144+
md={24}
2145+
lg={24}
2146+
xl={8}
2147+
className="flex flex-col h-full"
2148+
style={{ height: "100%", minHeight: 0 }}
2149+
>
21292150
{/* Header: Configure Agent Capabilities */}
21302151
<div className="flex justify-between items-center mb-2">
21312152
<div className="flex items-center">
@@ -2209,7 +2230,15 @@ export default function AgentSetupOrchestrator({
22092230
</Col>
22102231

22112232
{/* Right column: System Prompt Display */}
2212-
<Col xs={24} sm={24} md={24} lg={24} xl={8} className="flex flex-col" style={{ minHeight: '400px' }}>
2233+
<Col
2234+
xs={24}
2235+
sm={24}
2236+
md={24}
2237+
lg={24}
2238+
xl={8}
2239+
className="flex flex-col h-full"
2240+
style={{ height: "100%", minHeight: "400px" }}
2241+
>
22132242
<PromptManager
22142243
onDebug={onDebug ? () => confirmOrRun(() => onDebug()) : () => {}}
22152244
agentId={

frontend/app/[locale]/agents/components/agent/SubAgentPool.tsx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,8 @@ export default function SubAgentPool({
141141
}
142142
}
143143
`}</style>
144-
<div className="flex flex-col h-full min-h-[300px] lg:min-h-0 overflow-hidden">
145-
<div className="flex justify-between items-center mb-2">
144+
<div className="flex flex-col h-full min-h-[300px] lg:min-h-0 max-h-full overflow-hidden">
145+
<div className="flex justify-between items-center mb-2 flex-shrink-0">
146146
<div className="flex items-center">
147147
<div className="flex items-center justify-center w-6 h-6 rounded-full bg-blue-500 text-white text-sm font-medium mr-2">
148148
1
@@ -159,7 +159,10 @@ export default function SubAgentPool({
159159
)}
160160
</div>
161161
</div>
162-
<ScrollArea className="flex-1 min-h-0 border-t pt-2 pb-2">
162+
<ScrollArea
163+
className="flex-1 min-h-0 max-h-full h-full border-t pt-2 pb-2"
164+
style={{ height: "100%" }}
165+
>
163166
<div className="flex flex-col pr-2">
164167
{/* Function operation block */}
165168
<div className="mb-4">

frontend/app/[locale]/agents/components/tool/ToolPool.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -703,7 +703,7 @@ function ToolPool({
703703
{t("toolPool.error.unavailableSelected")}
704704
</div>
705705
)}
706-
<div className="flex-1 min-h-0 border-t pt-2 pb-2 overflow-hidden">
706+
<div className="flex-1 min-h-0 border-t pt-2 pb-2">
707707
{loadingTools ? (
708708
<div className="flex items-center justify-center h-full">
709709
<span className="text-gray-500">{t("toolPool.loadingTools")}</span>

0 commit comments

Comments
 (0)