dsh-web
zhu1090093659/dsh-webDeepSeek Harness(DSH)Web 插件聚合生态包 · 一切皆插件,创意工坊分发(dsh-market.com)
DeepSeek Harness web plugin: zero the collapsed left sidebar's 56px rail; reuses dsh-qol's hamburger, falls back to the official toggle.
English | 中文

Zero out the 56px rail the DSH left sidebar leaves behind when collapsed — while keeping the sidebar one click away. Pure browser-side CSS/DOM patch: no host API calls, no peer dependencies, effective immediately after restart.
DSH's collapsed-left-sidebar width is hard-coded in @deepseek-ai/dsh-client-ui-layout's AppFrame:
computeColumns(viewport, sidebar, rightbar, collapsedWidth = 56)
// collapsedWidth = darwin || html[data-windows-titlebar] ? 0 : 56
Only macOS (or desktop shells with a custom titlebar) collapse the sidebar to zero. On Windows/Linux the collapsed rail stays 56px wide and empty. This plugin zeroes it and gives the space back to the conversation pane.
grid-template-columns (!important over inline styles); the right panel's track is untouched. A MutationObserver re-applies after every React re-render (guarded against feedback loops)..astb-sidebar-toggle); this plugin's own button hides itself. qol is never modified.requires no host module (sidesteps the 0.2.0 client-modules drift), pure DOM/CSS.# via npm registry (recommended):
dsh plugin --profile web add dsh-rail-zero
# or straight from GitHub:
dsh plugin --profile web add github:HelloQingTao/dsh-rail-zero
Restart dsh web to take effect. Uninstall restores everything.
| DSH version | Status |
|---|---|
| 0.2.0-rc.1 / 0.2.0-rc.2 | ✅ tested |
| 0.1.x | untested (should work in principle, feedback welcome) |
Coexists cleanly with dsh-qol (reuses its hamburger), dsh-better-sidebar and dsh-sidebar-qa.
See the header comment in lib/client.js.
把 DeepSeek Harness 左侧会话栏收起后那条 56px 空轨道彻底清零,同时保证侧边栏仍然一键可展开。纯浏览器端 CSS/DOM 补丁,零宿主 API 依赖、零 peer 依赖,装上即生效。
DSH 的左栏收起逻辑写死在 @deepseek-ai/dsh-client-ui-layout 的 AppFrame 里:
computeColumns(viewport, sidebar, rightbar, collapsedWidth = 56)
// collapsedWidth = darwin || html[data-windows-titlebar] ? 0 : 56
只有 macOS(或带自绘标题栏的桌面壳)收起后是完全隐藏;Windows/Linux 浏览器端收起后永远留一条 56px 的空轨道。本插件把这条轨道清成 0,把空间还给对话区。
grid-template-columns 的首段(!important 压过内联样式),右侧面板轨道不受影响;MutationObserver 对抗 React 重渲染(带守卫防循环)。.astb-sidebar-toggle),本插件自己的按钮自动隐藏;require 任何宿主模块(避开 0.2.0 的 client-modules 漂移坑),纯 DOM/CSS。dsh plugin --profile web add dsh-rail-zero
# 或 GitHub 直装:
dsh plugin --profile web add github:HelloQingTao/dsh-rail-zero
重启 dsh web 生效。卸载即完全还原。
| DSH 版本 | 状态 |
|---|---|
| 0.2.0-rc.1 / 0.2.0-rc.2 | ✅ 实测 |
| 0.1.x | 未测(原理上兼容,欢迎反馈) |
与 dsh-qol 完全共存(复用其汉堡按钮);与 dsh-better-sidebar、dsh-sidebar-qa 无冲突。
见 lib/client.js 头注释。