Skip to content

armgit / qm

Public Imported from GitHub
0

Multiplayer agent harness for work.

fix(web-ui): keep a wide pane's composer on the transcript column

QM79e9aca69c10
diff --git a/plugins/web-ui/src/shell.css b/plugins/web-ui/src/shell.css
index f1fdf794f..043d5cd23 100644
--- a/plugins/web-ui/src/shell.css
+++ b/plugins/web-ui/src/shell.css
@@ -7254,8 +7254,10 @@ h3.ambient-field-label {
flex-wrap: wrap;
align-items: flex-end;
gap: 2px;
- width: auto;
- margin: 0 10px 10px;
+ /* Chrome only: the column width and side gutters stay with the rules above, which key off
+ the surface's own width — a pane that fills a wide window centres the composer on the
+ transcript column instead of stretching across it, and a narrow one still runs full-bleed. */
+ margin-bottom: 10px;
padding: 6px 8px;
border-radius: 16px;
}
diff --git a/plugins/web-ui/test/pane-composer-source.test.ts b/plugins/web-ui/test/pane-composer-source.test.ts
index 110710a23..9b44a5070 100644
--- a/plugins/web-ui/test/pane-composer-source.test.ts
+++ b/plugins/web-ui/test/pane-composer-source.test.ts
@@ -13,6 +13,13 @@ test("pane composer collapses to a single line — keyed off the pane, not a who
assert.match(composer, /Math\.max\(ctx\.pane \? 0 : 48, content\)/);
});
+test("a pane's composer tracks the transcript column instead of the whole surface", () => {
+ const block = css.match(/\[data-density\] \.composer-wrap \{[^}]*\}/)?.[0] ?? "";
+ assert.doesNotMatch(block, /width:/, "the column width comes from the surface-width rules, not the tier");
+ assert.doesNotMatch(block, /margin(-inline|-left|-right)?:/, "so do the side gutters");
+ assert.match(block, /margin-bottom: 10px;/, "the tier only tightens the dock's own chrome");
+});
+
test("phone touch layout cannot inflate a pane's composer controls", () => {
assert.match(
css,