web: center multiline composer controls

This commit is contained in:
2026-10-20 20:14:51 +01:00
parent 06dddb002a
commit 074b5bb087
3 changed files with 8 additions and 5 deletions
+3 -1
View File
@@ -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`);