Skip to content

armgit / qm

Public Imported from GitHub
0

Multiplayer agent harness for work.

web-ui: pane chat keeps its two-row grid — (#517)

Regan Belld752485d44c2
diff --git a/plugins/web-ui/src/chat.ts b/plugins/web-ui/src/chat.ts
index 0ab341a6b..9adca6e73 100644
--- a/plugins/web-ui/src/chat.ts
+++ b/plugins/web-ui/src/chat.ts
@@ -1051,7 +1051,7 @@ export function createChatSurface(
render(
html`
<div
- class="custom-chat-shell ${ctx.composer.state.dragging ? "dragging" : ""}"
+ class="custom-chat-shell ${ctx.pane ? "in-pane" : ""} ${ctx.composer.state.dragging ? "dragging" : ""}"
@dragenter=${(e: DragEvent) => ctx.composer.onDragEnter(e)}
@dragover=${(e: DragEvent) => ctx.composer.onDragOver(e)}
@dragleave=${(e: DragEvent) => ctx.composer.onDragLeave(e)}
diff --git a/plugins/web-ui/src/shell.css b/plugins/web-ui/src/shell.css
index bb90003ad..90c1c9382 100644
--- a/plugins/web-ui/src/shell.css
+++ b/plugins/web-ui/src/shell.css
@@ -991,8 +991,11 @@ a.chat-row-open {
position: relative;
}
/* Glance tiers render no top bar: two children (glance, dock), two rows. */
+/* Panes render no session topbar either (the pane tab is the header) — same two-row
+ grid, or the transcript falls into the auto row and the composer into the 1fr row. */
[data-density="card"] .custom-chat-shell,
-[data-density="strip"] .custom-chat-shell {
+[data-density="strip"] .custom-chat-shell,
+.custom-chat-shell.in-pane {
grid-template-rows: minmax(0, 1fr) auto;
}
.drop-overlay {
diff --git a/plugins/web-ui/test/split-single-header.test.ts b/plugins/web-ui/test/split-single-header.test.ts
index bd7956207..9e9c8669d 100644
--- a/plugins/web-ui/test/split-single-header.test.ts
+++ b/plugins/web-ui/test/split-single-header.test.ts
@@ -47,3 +47,8 @@ test("inline pane chrome is exactly tools, split, full screen, close", () => {
assert.match(inlineButtons, /Open full screen/);
assert.match(inlineButtons, /Close pane/);
});
+
+test("a topbar-less pane keeps the two-row grid: transcript bounded, composer at the bottom", () => {
+ assert.match(chat, /class="custom-chat-shell \$\{ctx\.pane \? "in-pane" : ""\}/);
+ assert.match(css, /\.custom-chat-shell\.in-pane \{\s*grid-template-rows: minmax\(0, 1fr\) auto;\s*\}/);
+});