diff --git a/frontend/packages/swarm-ui/src/agent/terminal/AgentInputForm.css b/frontend/packages/swarm-ui/src/agent/terminal/AgentInputForm.css index eab5f371b..d6d7eb50d 100644 --- a/frontend/packages/swarm-ui/src/agent/terminal/AgentInputForm.css +++ b/frontend/packages/swarm-ui/src/agent/terminal/AgentInputForm.css @@ -1,11 +1,12 @@ /* — one floating pill over the terminal's bottom edge. The whole pill is the text box; the send button is a circle inside its right end. The pill is the anchor of the command menu, which opens above it across its - full width. A send error sits above the pill. */ + full width. A send error sits at the top, under the badges, so the newest + rows stay in view. */ .ui-agent-input { position: absolute; inset-inline: 0.8em; - bottom: 0.8em; + inset-block: 3.4em 0.8em; z-index: 2; display: flex; flex-direction: column; @@ -15,9 +16,20 @@ .ui-agent-input > * { pointer-events: auto; } +/* A send error floats over the rows, so it needs a fill of its own: the banner's + own tint is nearly clear, and the rows behind it ran through the text. The + tint goes over the elevated surface, and the margin the panel has for a page + is not wanted over a terminal. It sits first, at the top, and the pill is + pushed to the bottom. */ +.ui-agent-input .api-error-panel { + order: -1; + margin: 0; + background: color-mix(in srgb, var(--red) 12%, var(--bg-elev)); +} .ui-agent-input-form { position: relative; + margin-block-start: auto; display: flex; align-items: center; gap: 0.25em;