diff --git a/frontend/packages/swarm-ui/src/agent/terminal/AgentTermPreview.css b/frontend/packages/swarm-ui/src/agent/terminal/AgentTermPreview.css index b3afd59a4..ed403a3cc 100644 --- a/frontend/packages/swarm-ui/src/agent/terminal/AgentTermPreview.css +++ b/frontend/packages/swarm-ui/src/agent/terminal/AgentTermPreview.css @@ -127,3 +127,19 @@ .ui-agent-term-preview-controls .ui-badge { min-height: 2.75em; } + +/* In the agent card's terminal section the terminal fills the section's body: + no padding of the body and no gap above, no frame of its own, and the + bottom corners follow the section's. */ +.ui-panel-body:has(> .ui-agent-term-preview-with-input) { + padding: 0; +} +.ui-panel-body > .ui-agent-term-preview-with-input { + margin-block-start: 0; +} +.ui-panel-body > .ui-agent-term-preview-with-input .ui-agent-term-preview-wrap { + margin: 0; + border-width: 0; + border-radius: 0 0 0.5em 0.5em; + overflow: hidden; +}