Watch
0
0
Fork
You've already forked hyperhive
0

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.
This commit is contained in:
iris 2026-11-18 20:16:31 +01:00 • committed by mara
commit 9ec67d7a18

View file

@ -1,11 +1,12 @@
/* <AgentInputForm> — 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;