agents: line the model and setting controls up in two columns

The controls hugged their text and right-aligned, so a model pill sat in
a different place on every row and the chevrons never lined up. They now
fill a fixed two-column grid — model (or large model) on the left, the
second setting on the right — so every chip and chevron lines up down the
list. A single control keeps the left column, so the model always sits in
the same place.
This commit is contained in:
yetone
2026-09-24 02:40:29 +08:00
parent 86c7fee4d5
commit 07533b7f02
+5 -3
View File
@@ -155,7 +155,11 @@ body.window .row .ic { width: 22px; height: 22px; }
/* two columns: the model, then the smaller setting; single controls sit at the end.
Fixed widths keep every chevron on the same vertical line down the list. */
.agent .who { flex: 1 1 auto; }
.fields { display: grid; grid-template-columns: minmax(0, 1fr) 124px; gap: 5px; width: 320px; flex: none; margin-left: auto; }
/* Two fixed columns: the model (or large model) fills the left, the second
setting the right, so every chip and its chevron lines up down the list.
A single control keeps the left column, so the model always sits in the
same place. */
.fields { display: grid; grid-template-columns: minmax(0, 1fr) 124px; gap: 5px; width: 350px; flex: none; margin-left: auto; }
body.panel .fields { width: 272px; grid-template-columns: minmax(0, 1fr) 118px; }
.field {
display: inline-flex; align-items: center; gap: 5px;
@@ -170,8 +174,6 @@ body.panel .fields { width: 272px; grid-template-columns: minmax(0, 1fr) 118px;
body.panel .field { height: 24px; font-size: 12px; box-shadow: inset 0 0 0 1px var(--pill-line), var(--pill-shadow); }
body.panel .field:hover { box-shadow: inset 0 0 0 1px var(--pill-line), var(--pill-shadow); }
body.panel .field.open { box-shadow: inset 0 0 0 1px var(--accent), var(--pill-shadow); }
.field.main, .field.solo { justify-self: end; }
.field.solo { grid-column: 1 / -1; }
.field:hover, .field.open { background: var(--pill-hover); }
.field.open { box-shadow: inset 0 0 0 1px var(--accent); }
.row .field .ic, body.window .row .field .ic { width: 14px; height: 14px; }