From 074b5bb087afb616d8f48c8cbd58145ad2f1fdcd Mon Sep 17 00:00:00 2001 From: Alan Silva Date: Tue, 20 Oct 2026 20:14:51 +0100 Subject: [PATCH] web: center multiline composer controls --- web/PARITY.md | 7 ++++--- web/chat.css | 2 +- web/test/composer-fit-browser.mjs | 4 +++- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/web/PARITY.md b/web/PARITY.md index b44f9f2b..cd08d9cd 100644 --- a/web/PARITY.md +++ b/web/PARITY.md @@ -89,9 +89,10 @@ restoration. No deployed service, live workflow or device was used. ### Chat audit follow-up (2026-10-20, partial — fresh UI captures pending) -Composer fit follow-up (2026-10-20): aligned attachment, Send and -Stop controls (44px square; 48px with a coarse pointer), a matching single-line -input, and six complete auto-grown text lines before scrolling. Send remains +Composer fit and vertical alignment follow-up (2026-10-20): attachment, Send and +Stop controls (44px square; 48px with a coarse pointer) are vertically centered +on the textarea, including multiline drafts. The single-line input matches their +height, and six complete auto-grown text lines fit before scrolling. Send remains available while running; its adjacent Stop slot is reserved even while idle so state changes do not rewrap a draft. Monochrome CSS SVG masks replace the platform-dependent button glyph rendering, preserving existing accessible names. diff --git a/web/chat.css b/web/chat.css index 81d84e88..c09ea5d1 100644 --- a/web/chat.css +++ b/web/chat.css @@ -926,7 +926,7 @@ .chat-command-notice-actions { display: flex; gap: 8px; } .chat-command-notice-actions button { padding: 3px 10px; font-size: 12px; } -.chat-composer-row { display: flex; gap: 8px; align-items: flex-end; min-width: 0; } +.chat-composer-row { display: flex; gap: 8px; align-items: center; min-width: 0; } .chat-file-input { display: none; } .chat-attach { color: var(--muted); } .chat-composer-input { diff --git a/web/test/composer-fit-browser.mjs b/web/test/composer-fit-browser.mjs index 6cc39d38..dc7f2a7c 100644 --- a/web/test/composer-fit-browser.mjs +++ b/web/test/composer-fit-browser.mjs @@ -58,7 +58,9 @@ try { assert.ok(m.documentWidth<=m.viewport,`${name}: document overflow`); for(const b of [m.attach,m.send,m.stop].filter(Boolean)) { assert.ok(b.width>=44 && b.height>=44,`${name}: touch target`); - assert.equal(b.bottom,m.input.bottom,`${name}: bottom alignment`); + const controlCenter=b.y+b.height/2; + const inputCenter=m.input.y+m.input.height/2; + assert.ok(Math.abs(controlCenter-inputCenter)<=1,`${name}: vertical center alignment`); } assert.equal(m.send.width,m.attach.width); assert.ok(m.input.right+8<=m.send.x,`${name}: input/action overlap`);