From d3d0fd23c6141a019632e71ac89796c2c4d5e76b Mon Sep 17 00:00:00 2001 From: l0ng-ai <24760907+l0ng-ai@users.noreply.github.com> Date: Thu, 5 Nov 2026 19:21:09 +0800 Subject: [PATCH] fix(agents): keep session header controls inside a narrow conversation column (#1540) The meters were fixed-width and the header didn't clip, so in a narrow conversation the stop, terminal and changes buttons spilled over the Changes pane. The title now shrinks first, meters that don't fit drop out whole, and the buttons keep their size. --- src/features/agents/Session.module.css | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/src/features/agents/Session.module.css b/src/features/agents/Session.module.css index d1a7e8017..067297bc0 100644 --- a/src/features/agents/Session.module.css +++ b/src/features/agents/Session.module.css @@ -46,9 +46,14 @@ border-bottom: 1px solid var(--border); flex: none; min-width: 0; + overflow: hidden; } +.header > * { + flex: none; +} +/* Shrinks ahead of the meters. */ .title { - flex: 0 1 auto; + flex: 0 1000 auto; min-width: 0; font-weight: 600; color: var(--fg-strong); @@ -539,11 +544,17 @@ white-space: nowrap; } +/* Meters that don't fit wrap onto a hidden second row instead of being cut in half. */ .meters { - flex: none; + flex: 0 1 auto; + min-width: 0; + height: 22px; + overflow: hidden; display: inline-flex; + flex-wrap: wrap; align-items: center; - gap: 10px; + align-content: flex-start; + gap: 0 10px; color: var(--fg-subtle); font-size: var(--fs-small); font-variant-numeric: tabular-nums; @@ -552,6 +563,7 @@ .meter { display: inline-flex; align-items: center; + height: 22px; gap: 5px; } .usageBar {