Skip to content

Commit 02db778

Browse files
committed
Bugfix: Set the agent configuration page outer scrollbar to be hidden and the inner scrollbar to be displayed
1 parent 412518f commit 02db778

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
@@ -1963,9 +1963,22 @@ export default function AgentSetupOrchestrator({
19631963
<TooltipProvider>
19641964
<div className="h-full relative px-2">
19651965
{/* Three-column layout using Ant Design Grid */}
1966-
<Row gutter={[16, 16]} className="h-full">
1966+
<Row
1967+
gutter={[16, 16]}
1968+
className="h-full"
1969+
align="stretch"
1970+
style={{ minHeight: 0 }}
1971+
>
19671972
{/* Left column: SubAgentPool */}
1968-
<Col xs={24} sm={24} md={24} lg={24} xl={8} className="flex flex-col" style={{ minHeight: '400px' }}>
1973+
<Col
1974+
xs={24}
1975+
sm={24}
1976+
md={24}
1977+
lg={24}
1978+
xl={8}
1979+
className="flex flex-col h-full"
1980+
style={{ height: "100%", minHeight: 0 }}
1981+
>
19691982
<SubAgentPool
19701983
onEditAgent={(agent) => handleEditAgent(agent, t)}
19711984
onCreateNewAgent={() => confirmOrRun(handleCreateNewAgent)}
@@ -1988,7 +2001,15 @@ export default function AgentSetupOrchestrator({
19882001
</Col>
19892002

19902003
{/* Middle column: Agent capability configuration */}
1991-
<Col xs={24} sm={24} md={24} lg={24} xl={8} className="flex flex-col" style={{ minHeight: '400px' }}>
2004+
<Col
2005+
xs={24}
2006+
sm={24}
2007+
md={24}
2008+
lg={24}
2009+
xl={8}
2010+
className="flex flex-col h-full"
2011+
style={{ height: "100%", minHeight: 0 }}
2012+
>
19922013
{/* Header: Configure Agent Capabilities */}
19932014
<div className="flex justify-between items-center mb-2">
19942015
<div className="flex items-center">
@@ -2072,7 +2093,15 @@ export default function AgentSetupOrchestrator({
20722093
</Col>
20732094

20742095
{/* Right column: System Prompt Display */}
2075-
<Col xs={24} sm={24} md={24} lg={24} xl={8} className="flex flex-col" style={{ minHeight: '400px' }}>
2096+
<Col
2097+
xs={24}
2098+
sm={24}
2099+
md={24}
2100+
lg={24}
2101+
xl={8}
2102+
className="flex flex-col h-full"
2103+
style={{ height: "100%", minHeight: "400px" }}
2104+
>
20762105
<PromptManager
20772106
onDebug={onDebug ? () => confirmOrRun(() => onDebug()) : () => {}}
20782107
agentId={

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

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