Skip to content

armgit / qm

Public Imported from GitHub
0

Multiplayer agent harness for work.

fix: stack queued messages without gaps (#1152)

Joshua France59cf6554faad
diff --git a/plugins/web-ui/src/shell.css b/plugins/web-ui/src/shell.css
index a53a01a70..b76880ef0 100644
--- a/plugins/web-ui/src/shell.css
+++ b/plugins/web-ui/src/shell.css
@@ -1817,7 +1817,6 @@ a.chat-row-open {
z-index: 0;
display: flex;
flex-direction: column;
- gap: 4px;
width: min(calc(var(--content-w) - 24px), calc(100% - 56px));
margin: 0 auto -10px;
}
@@ -1834,6 +1833,9 @@ a.chat-row-open {
font-size: 12px;
line-height: 1.2;
}
+.queued-chip + .queued-chip {
+ margin-top: -10px;
+}
.queued-tag {
flex: none;
font-size: 10px;
diff --git a/plugins/web-ui/test/pinned-composer-polish.test.ts b/plugins/web-ui/test/pinned-composer-polish.test.ts
index 0da0c859b..47142a92a 100644
--- a/plugins/web-ui/test/pinned-composer-polish.test.ts
+++ b/plugins/web-ui/test/pinned-composer-polish.test.ts
@@ -36,3 +36,11 @@ test("composer status rows share the responsive input font size", () => {
for (const declaration of declarations) assert.match(declaration[1], /^var\(--composer-font-size[,)]/);
}
});
+
+test("queued cards tuck beneath the next card just as the queue tucks beneath the composer", () => {
+ const strip = css.match(/\.queued-strip \{([^}]+)\}/)?.[1] ?? "";
+ const stacked = css.match(/\.queued-chip \+ \.queued-chip \{([^}]+)\}/)?.[1] ?? "";
+ assert.doesNotMatch(strip, /gap:/);
+ assert.match(strip, /margin: 0 auto -10px;/);
+ assert.match(stacked, /margin-top: -10px;/);
+});