web: center multiline composer controls
This commit is contained in:
@@ -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`);
|
||||
|
||||
Reference in New Issue
Block a user