A team of long-lived bots for DeepSeek Harness, with main bots, bot-to-bot messages and group chats.
Keep the flat toolbar clear of reactions
klarkxye1c0caf6344b
diff --git a/ds-bot/client.js b/ds-bot/client.jsindex 7b7b1ce3..c3371fb9 100644--- a/ds-bot/client.js+++ b/ds-bot/client.js@@ -3069,6 +3069,9 @@ body[data-bt-layout=flat] .bt-astack{align-items:stretch;gap:10px}body[data-bt-layout=flat] .bt-msg,body[data-bt-layout=flat] .bt-astack[data-lead]>.bt-msg{align-items:stretch;max-width:calc(var(--bt-flat-w) * 100%)}body[data-bt-layout=flat] .bt-bubble{background:none;padding:0;border-radius:0}body[data-bt-layout=flat] .bt-tools{bottom:-14px;right:0;left:auto;margin-left:0;transform:none;padding:2px;border-radius:999px;background:var(--bt-card);box-shadow:inset 0 0 0 .5px var(--bt-line-2),0 4px 14px rgba(0,0,0,.14)}+/* With reactions below, the toolbar stays inside the message row instead of+ covering their top edge when the hover shows it. */+body[data-bt-layout=flat] .bt-msg:has(>.bt-reacts) .bt-tools{bottom:0}body[data-bt-layout=flat] .bt-tools::after{display:none}.bt-tool{width:24px;height:24px;border:0;padding:0;border-radius:6px;background:none;color:var(--bt-ink-2);display:inline-flex;align-items:center;justify-content:center;cursor:pointer;transition:background-color .12s ease,color .12s ease}.bt-tool:hover,.bt-tool[aria-expanded=true]{background:var(--bt-hover);color:var(--bt-ink)}diff --git a/ds-bot/src/client/styles.js b/ds-bot/src/client/styles.jsindex 72245dbc..657034ef 100644--- a/ds-bot/src/client/styles.js+++ b/ds-bot/src/client/styles.js@@ -677,6 +677,9 @@ body[data-bt-layout=flat] .bt-astack{align-items:stretch;gap:10px}body[data-bt-layout=flat] .bt-msg,body[data-bt-layout=flat] .bt-astack[data-lead]>.bt-msg{align-items:stretch;max-width:calc(var(--bt-flat-w) * 100%)}body[data-bt-layout=flat] .bt-bubble{background:none;padding:0;border-radius:0}body[data-bt-layout=flat] .bt-tools{bottom:-14px;right:0;left:auto;margin-left:0;transform:none;padding:2px;border-radius:999px;background:var(--bt-card);box-shadow:inset 0 0 0 .5px var(--bt-line-2),0 4px 14px rgba(0,0,0,.14)}+/* With reactions below, the toolbar stays inside the message row instead of+ covering their top edge when the hover shows it. */+body[data-bt-layout=flat] .bt-msg:has(>.bt-reacts) .bt-tools{bottom:0}body[data-bt-layout=flat] .bt-tools::after{display:none}.bt-tool{width:24px;height:24px;border:0;padding:0;border-radius:6px;background:none;color:var(--bt-ink-2);display:inline-flex;align-items:center;justify-content:center;cursor:pointer;transition:background-color .12s ease,color .12s ease}.bt-tool:hover,.bt-tool[aria-expanded=true]{background:var(--bt-hover);color:var(--bt-ink)}diff --git a/ds-bot/test/styles.test.js b/ds-bot/test/styles.test.jsindex 39a48178..e25a35dd 100644--- a/ds-bot/test/styles.test.js+++ b/ds-bot/test/styles.test.js@@ -185,3 +185,8 @@ test('the tools toolbar keeps its own stacking context for the hover bridge', ()assert.match(css, /\.bt-tools\{position:absolute;bottom:0;z-index:0;/)assert.match(css, /\.bt-tools::after\{[^}]*z-index:-1/)})++test('the flat toolbar does not cover reactions below the message', () => {+ const css = readFileSync(new URL('../src/client/styles.js', import.meta.url), 'utf8')+ assert.match(css, /body\[data-bt-layout=flat\] \.bt-msg:has\(>\.bt-reacts\) \.bt-tools\{bottom:0\}/)+})