Description
Summary
Reduce the vertical footprint of the Composer's constant geometry, without
introducing an idle/active mode switch.
Problem
At an 820px-high window on current main:
- the Composer outer surface is 200px high
- the chat viewport is 580px high
- the empty Composer inner surface is 128px high
- the empty textarea is 56px high
- the workspace/branch row is 36px high
The Composer therefore occupies almost one quarter of the window before the
user has entered any text, reducing the space available for the conversation.
Observed in the live Electron app through CDP.
Refs #546
Proposed direction
Tighten the Composer's constant vertical footprint (outer/inner padding,
textarea↔toolbar gap, toolbar top margin, textarea min-height) via static CSS
values. Do not introduce an idle/active mode switch. The Composer is the
highest-frequency surface and sits at the bottom of the chat column; an
idle↔active height switch would push the chat viewport boundary and jump the
conversation. Stability takes priority over peak space savings.
The textarea already grows smoothly with content up to the existing 240px cap
(autoResize), and attachment cards add height when present — both are existing
mechanisms, unchanged. Controls (attach / permission mode / model / send-stop)
and the workspace/branch row stay mounted at all times; nothing is hidden or
collapsed.
Acceptance criteria
- Composer base height (empty textarea) tightens from 200px to ~164px
(≥18% reduction); no idle/active mode switch is introduced. - textarea grows smoothly with content up to the existing 240px cap
(autoResizebehavior unchanged). - Attachment cards add height when present (existing mechanism, unchanged).
- Controls (attach / permission mode / model / send-stop) and the
workspace/branch row stay mounted and usable at all times. - Focus rings are not clipped and the send target stays aligned
(focus-within only changes border/box-shadow, not height). - No new discrete height jumps are introduced (no enter/leave; the only
height change is textarea growing with content, which already exists). - 1280px and 990px layouts are checked, including reduced motion.
- A computed-style contract locks the constant geometry
(--h-composer-min, outer/inner padding, textarea↔toolbar gap, textarea
min-height, workspace-row margin maintained); E2E is not used (no
renderer↔main journey change).
Out of scope
- Introducing an idle/active or compact/expanded mode switch (stability
priority — a mode switch would jump the chat column). - Hiding or collapsing controls or the workspace/branch row.
- Redesigning Composer controls.
- Changing send behavior or keyboard shortcuts.
Activity
[-]fix(ui): compact the idle composer[/-][+]fix(ui): compact the composer's constant footprint[/+]Astro-Han commentedon Jul 12, 2026
Direction adjustment (re-shaping from first principles):
The original AC implied an idle/active mode switch ("compact idle geometry … expand only when … requires it", "enters or leaves compact mode"). Re-examined from first principles, that switch is the wrong shape for this surface: the Composer is the highest-frequency surface and sits at the bottom of the chat column, so an idle↔active height change would push the chat viewport boundary and jump the conversation the user is reading. Stability takes priority over peak space savings.
Revised direction (reflected in the updated body): tighten the Composer's constant footprint via static CSS values — outer/inner padding, textarea↔toolbar gap, toolbar top margin, textarea min-height — with no mode switch. The textarea already grows with content up to the 240px cap via
autoResize, and attachment cards add height when present; both are existing mechanisms, unchanged. Controls and the workspace/branch row stay mounted.Net: 200px → ~164px (≥18% reduction) with no discrete height jump.
fix(ui): tighten the composer's constant footprint (#740)
refactor(ui): single-source composer geometry + lock no-mode-switch
fix(ui): stop button shares send height + honest contract scope
fix(ui): tighten the composer's constant footprint (#740) (#752)
chore(ui): UI/UX quality campaign — audits, token fix, Alert consolid…