A team of long-lived bots for DeepSeek Harness, with main bots, bot-to-bot messages and group chats.
Keep the Bot composer and sidebar footer under other skins
Fei2411a6ce43ee086a
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex c8b2fec5..35f653f4 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -4,6 +4,10 @@ All notable changes to DS Bot are listed here. The format follows [Keep a Change## [Unreleased]+### Fixed++- With a plugin that re-skins DSH's composer or sidebar installed alongside, such as `@michengai/dsh-codex-ui`, a Bot chat's message box keeps its one-line height, its button spacing and its "Message <Bot>" placeholder, and the sidebar footer keeps the account button and Connect plugins on one row. ([#127](https://github.com/Fei2411/DeepSeek-Bot/issues/127))+## [0.1.5] - 2026-10-13### Addeddiff --git a/ds-bot/client.js b/ds-bot/client.jsindex f46d6417..e4770f77 100644--- a/ds-bot/client.js+++ b/ds-bot/client.js@@ -1830,6 +1830,7 @@ function useLinger(value, ms) {}// src/client/styles.js+var SKIN_FOOT = ':is(div,footer):not([class*="_footArea"]):has(> div > [data-slot="sidebar.footer.action"] > .bt-connect-wrap)';var SHELL_CSS = `body{--bt-ink:#141414;--bt-ink-2:rgba(20,20,20,.6);--bt-ink-3:rgba(20,20,20,.36);--bt-bubble:#eeeeee;--bt-sidebar:#f7f7f7;--bt-main:#fcfcfc;--bt-line:rgba(20,20,20,.08);--bt-line-2:rgba(20,20,20,.15);--bt-line-weak:rgba(20,20,20,.1);--bt-hover:rgba(119,119,119,.09);--bt-active:rgba(119,119,119,.17);--bt-card:#ffffff;--bt-accent:#4d6bfe;--bt-green:#00c972;--bt-star:#ff9800;--bt-user:#070707;--bt-user-ink:#fcfcfc;--bt-tag-bg:rgba(20,20,20,.06);--bt-tag-ink:rgba(20,20,20,.56)}body[data-ds-dark-theme]{--bt-ink:#f2f2f2;--bt-ink-2:rgba(242,242,242,.6);--bt-ink-3:rgba(242,242,242,.36);--bt-bubble:#262626;--bt-sidebar:#1b1b1b;--bt-main:#141414;--bt-line:rgba(255,255,255,.08);--bt-line-2:rgba(255,255,255,.15);--bt-line-weak:rgba(255,255,255,.1);--bt-hover:rgba(160,160,160,.12);--bt-active:rgba(160,160,160,.2);--bt-card:#1f1f1f;--bt-user:#f2f2f2;--bt-user-ink:#141414;--bt-tag-bg:rgba(255,255,255,.09);--bt-tag-ink:rgba(242,242,242,.62)}@@ -2318,6 +2319,9 @@ button.bt-set-row:hover{background:var(--bt-hover)}[class*="_footArea"]>[class*="_footerActions"]{flex:1 1 auto;min-width:0}[class*="_footArea"]>[class*="_settingsArea"]{flex:none;width:auto!important}[class*="_footArea"] button[aria-label="Settings"]{width:auto!important;padding:0!important;background:none!important;border-radius:50%!important;height:auto!important}+${SKIN_FOOT}{display:flex!important;flex-direction:row!important;align-items:center!important;gap:9px!important}+${SKIN_FOOT}>div:has(> [data-slot="sidebar.footer.action"]){display:flex!important;align-items:center!important;flex:1 1 auto!important;min-width:0!important}+${SKIN_FOOT}>div:has(> [data-slot="sidebar.settings"]){order:-1!important;flex:none!important;width:auto!important}[class*="_widthHandle"]{display:none!important}.bt-voice-pane{flex-direction:column;align-items:center;justify-content:center;animation:bt-fade .2s ease-out}@@ -2678,20 +2682,21 @@ header[class*="_header"] .bt-head{flex:1 1 auto;width:100%}}@keyframes bt-fade-in{from{opacity:0}to{opacity:1}}@keyframes bt-fade-out{from{opacity:1}to{opacity:0}}-[data-composer-card]{display:flex!important;flex-direction:row;flex-wrap:wrap;align-items:center;gap:0!important;min-height:44px;border-radius:22px!important;padding:7.5px!important;box-sizing:border-box;background:var(--bt-main)!important;border:.5px solid var(--bt-line-2)!important;box-shadow:0 2px 8px -1px rgba(0,0,0,.05),0 1px 2px rgba(0,0,0,.03),0 0 0 1px rgba(228,228,228,.04)!important;transition:border-color .15s ease,background-color .15s ease,${spring(SPRING_SHAPE, "border-radius")}!important}+[data-composer-card]{display:flex!important;flex-direction:row!important;flex-wrap:wrap!important;align-items:center!important;gap:0!important;min-height:44px!important;border-radius:22px!important;padding:7.5px!important;box-sizing:border-box;background:var(--bt-main)!important;border:.5px solid var(--bt-line-2)!important;box-shadow:0 2px 8px -1px rgba(0,0,0,.05),0 1px 2px rgba(0,0,0,.03),0 0 0 1px rgba(228,228,228,.04)!important;transition:border-color .15s ease,background-color .15s ease,${spring(SPRING_SHAPE, "border-radius")}!important}[data-composer-card]:hover,[data-composer-card]:focus-within{border-color:color-mix(in srgb,var(--bt-ink) 30%,transparent)!important}[data-composer-card]:has(> [data-slot="conversation.input.attachments"] *),[data-composer-card]:has([data-composer-input] br + *),[data-composer-card]:has([data-composer-input] > :nth-child(2)){border-radius:18px!important}[class*="_root"]:has(> [data-composer-card]){padding:0 11px 13px 16px!important}[class*="_root"]:has(> [data-composer-card])>[data-composer-card]{max-width:min(992px,100%)!important}[data-composer-card]>[class*="_row"]{display:contents!important}-[data-composer-card] [class*="_tools"]{order:1;flex:none;align-self:flex-end;margin:0}-[data-composer-card]>[data-input-scroll]{order:2;flex:1 1 0;min-width:0;padding:0 8px!important;margin:0!important}-[data-composer-card] [class*="_trailing"]{order:3;flex:none;align-self:flex-end;margin:0}-[data-composer-card]>[data-slot="conversation.input.attachments"]{order:0;flex-basis:100%}-[data-composer-card] [data-composer-input]{min-height:24px;padding:2px 0!important}+[data-composer-card] [class*="_tools"]{order:1!important;flex:none!important;align-self:flex-end!important;margin:0!important}+[data-composer-card]>[data-input-scroll]{order:2!important;flex:1 1 0!important;min-width:0!important;padding:0 8px!important;margin:0!important}+[data-composer-card] [class*="_trailing"]{order:3!important;flex:none!important;align-self:flex-end!important;margin:0!important}+[data-composer-card]>[data-slot="conversation.input.attachments"]{order:0!important;flex-basis:100%!important}+[data-composer-card] [data-composer-input]{min-height:24px!important;padding:2px 0!important}[data-composer-card] [data-composer-placeholder]{left:0!important;top:2px!important}[data-composer-placeholder]{font-size:0!important;line-height:0!important}-[data-composer-placeholder]::after{content:var(--bt-placeholder,"Message");display:block;font-size:14px;line-height:24px;color:color-mix(in srgb,var(--bt-ink) 36%,transparent)}+/* The name sits on ::before so that ::after stays free for other composer skins. */+[data-composer-placeholder]::before{content:var(--bt-placeholder,"Message")!important;display:block!important;font-size:14px!important;line-height:24px!important;color:color-mix(in srgb,var(--bt-ink) 36%,transparent)!important}/* The team's "+" (ComposerPlus) takes the seat of the shell's command-menu button. */[data-composer-card] button[class*="_add"]{display:none!important}.bt-plus{flex:none;width:28px;height:28px;padding:0;border:0;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;background:color-mix(in srgb,var(--bt-ink) 5%,transparent);box-shadow:inset 0 0 0 .5px var(--bt-line);color:var(--bt-ink-2);cursor:pointer;transition:background-color .15s ease,color .15s ease,${spring(SPRING_TAP, "scale")}}@@ -2703,8 +2708,9 @@ header[class*="_header"] .bt-head{flex:1 1 auto;width:100%}[data-composer-card] [class*="_tools"]{gap:0!important}[data-composer-card] [class*="_modes"]:empty{display:none!important}[data-composer-card] [class*="_activity"]:not(:has([data-slot] > *)){display:none!important}-[data-composer-card] [class*="_trailing"]{gap:8px}-[data-composer-card] [class*="_standardControls"]{display:flex;align-items:center;gap:8px}+[data-composer-card] [class*="_trailing"]{gap:8px!important}+/* No display here: DSH hides these controls with [hidden] while the Bot works. */+[data-composer-card] [class*="_standardControls"]{align-items:center!important;gap:8px!important}[data-composer-card] button[class*="_primary"]{width:28px!important;height:28px!important;background:var(--bt-accent)!important;color:var(--bt-accent-ink,#fff)!important;border-radius:50%!important;transition:opacity .15s ease,${spring(SPRING_TAP, "scale")};animation:bt-icon-swap ${SPRING_POP.duration}ms ${SPRING_POP.easing}}[data-composer-card] button[class*="_primary"]:hover:not(:disabled){opacity:.9}[data-composer-card] button[class*="_primary"]:active:not(:disabled){scale:.9}diff --git a/ds-bot/src/client/styles.js b/ds-bot/src/client/styles.jsindex b538b95d..51ad8c08 100644--- a/ds-bot/src/client/styles.js+++ b/ds-bot/src/client/styles.js@@ -6,6 +6,11 @@ import { SPRING_SHAPE, SPRING_TAP, SPRING_STRETCH, SPRING_POP, spring } from './// The pill stretches for "Memory updated" on SPRING_STRETCH, and its icon pops on// SPRING_POP; it closes on SPRING_SHAPE.+// A sidebar skin may seat DSH's footer outlets in a footer of its own; matching the+// outlets keeps that footer on one row whatever the skin names its boxes. The shell's+// own footer is left to the _footArea rules, which lay it out differently.+const SKIN_FOOT = ':is(div,footer):not([class*="_footArea"]):has(> div > [data-slot="sidebar.footer.action"] > .bt-connect-wrap)'+// The base styles split the way the surface groups do. SHELL_CSS carries the marks,// the Bot sidebar, every overlay, and the shell chrome they reshape; markup shared// with the overlays (the exchange dialog reuses bubbles, the Secrets page reuses@@ -500,6 +505,9 @@ button.bt-set-row:hover{background:var(--bt-hover)}[class*="_footArea"]>[class*="_footerActions"]{flex:1 1 auto;min-width:0}[class*="_footArea"]>[class*="_settingsArea"]{flex:none;width:auto!important}[class*="_footArea"] button[aria-label="Settings"]{width:auto!important;padding:0!important;background:none!important;border-radius:50%!important;height:auto!important}+${SKIN_FOOT}{display:flex!important;flex-direction:row!important;align-items:center!important;gap:9px!important}+${SKIN_FOOT}>div:has(> [data-slot="sidebar.footer.action"]){display:flex!important;align-items:center!important;flex:1 1 auto!important;min-width:0!important}+${SKIN_FOOT}>div:has(> [data-slot="sidebar.settings"]){order:-1!important;flex:none!important;width:auto!important}[class*="_widthHandle"]{display:none!important}.bt-voice-pane{flex-direction:column;align-items:center;justify-content:center;animation:bt-fade .2s ease-out}@@ -861,20 +869,21 @@ header[class*="_header"] .bt-head{flex:1 1 auto;width:100%}}@keyframes bt-fade-in{from{opacity:0}to{opacity:1}}@keyframes bt-fade-out{from{opacity:1}to{opacity:0}}-[data-composer-card]{display:flex!important;flex-direction:row;flex-wrap:wrap;align-items:center;gap:0!important;min-height:44px;border-radius:22px!important;padding:7.5px!important;box-sizing:border-box;background:var(--bt-main)!important;border:.5px solid var(--bt-line-2)!important;box-shadow:0 2px 8px -1px rgba(0,0,0,.05),0 1px 2px rgba(0,0,0,.03),0 0 0 1px rgba(228,228,228,.04)!important;transition:border-color .15s ease,background-color .15s ease,${spring(SPRING_SHAPE, 'border-radius')}!important}+[data-composer-card]{display:flex!important;flex-direction:row!important;flex-wrap:wrap!important;align-items:center!important;gap:0!important;min-height:44px!important;border-radius:22px!important;padding:7.5px!important;box-sizing:border-box;background:var(--bt-main)!important;border:.5px solid var(--bt-line-2)!important;box-shadow:0 2px 8px -1px rgba(0,0,0,.05),0 1px 2px rgba(0,0,0,.03),0 0 0 1px rgba(228,228,228,.04)!important;transition:border-color .15s ease,background-color .15s ease,${spring(SPRING_SHAPE, 'border-radius')}!important}[data-composer-card]:hover,[data-composer-card]:focus-within{border-color:color-mix(in srgb,var(--bt-ink) 30%,transparent)!important}[data-composer-card]:has(> [data-slot="conversation.input.attachments"] *),[data-composer-card]:has([data-composer-input] br + *),[data-composer-card]:has([data-composer-input] > :nth-child(2)){border-radius:18px!important}[class*="_root"]:has(> [data-composer-card]){padding:0 11px 13px 16px!important}[class*="_root"]:has(> [data-composer-card])>[data-composer-card]{max-width:min(992px,100%)!important}[data-composer-card]>[class*="_row"]{display:contents!important}-[data-composer-card] [class*="_tools"]{order:1;flex:none;align-self:flex-end;margin:0}-[data-composer-card]>[data-input-scroll]{order:2;flex:1 1 0;min-width:0;padding:0 8px!important;margin:0!important}-[data-composer-card] [class*="_trailing"]{order:3;flex:none;align-self:flex-end;margin:0}-[data-composer-card]>[data-slot="conversation.input.attachments"]{order:0;flex-basis:100%}-[data-composer-card] [data-composer-input]{min-height:24px;padding:2px 0!important}+[data-composer-card] [class*="_tools"]{order:1!important;flex:none!important;align-self:flex-end!important;margin:0!important}+[data-composer-card]>[data-input-scroll]{order:2!important;flex:1 1 0!important;min-width:0!important;padding:0 8px!important;margin:0!important}+[data-composer-card] [class*="_trailing"]{order:3!important;flex:none!important;align-self:flex-end!important;margin:0!important}+[data-composer-card]>[data-slot="conversation.input.attachments"]{order:0!important;flex-basis:100%!important}+[data-composer-card] [data-composer-input]{min-height:24px!important;padding:2px 0!important}[data-composer-card] [data-composer-placeholder]{left:0!important;top:2px!important}[data-composer-placeholder]{font-size:0!important;line-height:0!important}-[data-composer-placeholder]::after{content:var(--bt-placeholder,"Message");display:block;font-size:14px;line-height:24px;color:color-mix(in srgb,var(--bt-ink) 36%,transparent)}+/* The name sits on ::before so that ::after stays free for other composer skins. */+[data-composer-placeholder]::before{content:var(--bt-placeholder,"Message")!important;display:block!important;font-size:14px!important;line-height:24px!important;color:color-mix(in srgb,var(--bt-ink) 36%,transparent)!important}/* The team's "+" (ComposerPlus) takes the seat of the shell's command-menu button. */[data-composer-card] button[class*="_add"]{display:none!important}.bt-plus{flex:none;width:28px;height:28px;padding:0;border:0;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;background:color-mix(in srgb,var(--bt-ink) 5%,transparent);box-shadow:inset 0 0 0 .5px var(--bt-line);color:var(--bt-ink-2);cursor:pointer;transition:background-color .15s ease,color .15s ease,${spring(SPRING_TAP, 'scale')}}@@ -886,8 +895,9 @@ header[class*="_header"] .bt-head{flex:1 1 auto;width:100%}[data-composer-card] [class*="_tools"]{gap:0!important}[data-composer-card] [class*="_modes"]:empty{display:none!important}[data-composer-card] [class*="_activity"]:not(:has([data-slot] > *)){display:none!important}-[data-composer-card] [class*="_trailing"]{gap:8px}-[data-composer-card] [class*="_standardControls"]{display:flex;align-items:center;gap:8px}+[data-composer-card] [class*="_trailing"]{gap:8px!important}+/* No display here: DSH hides these controls with [hidden] while the Bot works. */+[data-composer-card] [class*="_standardControls"]{align-items:center!important;gap:8px!important}[data-composer-card] button[class*="_primary"]{width:28px!important;height:28px!important;background:var(--bt-accent)!important;color:var(--bt-accent-ink,#fff)!important;border-radius:50%!important;transition:opacity .15s ease,${spring(SPRING_TAP, 'scale')};animation:bt-icon-swap ${SPRING_POP.duration}ms ${SPRING_POP.easing}}[data-composer-card] button[class*="_primary"]:hover:not(:disabled){opacity:.9}[data-composer-card] button[class*="_primary"]:active:not(:disabled){scale:.9}