From 1fcd539f298db0cac067fc65f1e2c8ec8cc693bb Mon Sep 17 00:00:00 2001 From: yetone Date: Thu, 24 Sep 2026 02:44:02 +0800 Subject: [PATCH] agents: keep the tray panel's control-sized pills The lined-up columns only suit the wide window: in the narrow menu bar panel a solo control spanning both columns is what keeps a long model id readable, so scope the fill to body.window and leave the panel as it was. --- internal/gui/assets/app.css | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/internal/gui/assets/app.css b/internal/gui/assets/app.css index ab0e09797..a34040cac 100644 --- a/internal/gui/assets/app.css +++ b/internal/gui/assets/app.css @@ -174,6 +174,14 @@ 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); } +/* the tray panel keeps control-sized pills: a solo control spans both columns + and hugs the right — an economy the narrow panel wants */ +.field.main, .field.solo { justify-self: end; } +.field.solo { grid-column: 1 / -1; } +/* in the window the chips fill their column, so every chip and chevron lines + up down the list and the model always sits in the same place */ +body.window .field.main, body.window .field.solo { justify-self: stretch; } +body.window .field.solo { grid-column: auto; } .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; }