From 9ec67d7a1830795dc313017e724b32d5f1a09e75 Mon Sep 17 00:00:00 2001 From: iris Date: Wed, 18 Nov 2026 20:16:31 +0100 Subject: [PATCH] swarm ui: a send error sits under the badges with a solid fill The error over the terminal took the newest rows. It now sits at the top, under the badges, and has an opaque tint so the rows behind do not show through the text. --- .../src/agent/terminal/AgentInputForm.css | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) 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;