dsh-wide-chat
Manifest validDrag the right edge of the chat column to widen it, between 520 and 2400 pixels; double-click the handle to reset to the default. The width is saved in localStorage and restored on the next open. It s
dsh-wide-chat
给 DSH 网页版加一根能拖的把手,把聊天列调宽。装完就能拖,重启后还记得。
大屏上 DSH 的会话列只占中间一条,左右两边空着。这个插件把列宽做成可拖的:把手在会话列右缘,按住往右拉就变宽,双击把手恢复默认 1040px。
- 范围 520–2400px
- 宽度存在
localStorage['dsh-wide-chat:width'],下次打开还在 - 输入框、审批卡、用户气泡的宽度都跟着同一个变量走,不会出现「内容宽了、输入框还窄」
- 不用拖也能改:控制台(F12)里
__dshWideChat.set(1200)/__dshWideChat.reset()
安装
方式一:一条命令(推荐)
dsh plugin --profile desktop add github:Hakuno410/dsh-wide-chat
装完重启 DSH(新增 bundle 需要重启才会下发客户端模块)。
把
desktop换成你自己的 profile 名。Web 版一般叫web。
方式二:插件市场
在 DSH 里打开插件市场(dshmarket),搜 dsh-wide-chat,点安装。
方式三:本地
git clone https://github.com/Hakuno410/dsh-wide-chat.git
dsh plugin --profile desktop add link:"<克隆下来的目录>"
卸载
dsh plugin --profile desktop remove dsh-wide-chat
重启即可。拖过的宽度值会留在 localStorage 里,不影响 DSH 本身。
它到底改了什么
只改一个 CSS 自定义属性:
:root{ --dsh-chat-content-width: 1040px !important }
DSH 的会话列是 .xxx_column{max-width:var(--dsh-chat-content-width)}(类名是构建哈希,随版本变;变量名稳定)。输入框的 Zf6DNq_card、用户气泡的 LOmM4q_userStack、表格的宽表逻辑,全都从这个变量派生。所以改这一个,整列一起走,不碰任何 DOM 结构。
!important 是为了压过可能的 :root 内联声明——运行时算出来的值写在 style 属性里,样式表规则只有带 !important 才盖得住(自定义属性也遵守这条)。
兼容性
- 要求 DSH
>= 0.2.0-rc.2(用到了--dsh-chat-content-width这个变量) - 纯前端插件,host 半是空的:不注册服务、不加工具、不占上下文
- 和别的 UI 插件不冲突:它不插 React 节点,把手是
position:fixed挂在body上
已知限制
- 找不到会话列时会退回居中公式定位:如果以后的版本把
[data-slot="conversation.chat.flow"]改名了,把手位置会偏,但拖拽本身仍然有效(宽度是变量驱动的)。改findColumn()里的选择器即可。 - 只影响网页版 GUI,命令行 / TUI 无关。
- 不改变 DSH 自己的偏好键(
dsh.conversation.contentWidth)——两套互不干扰。如果你的 DSH 版本自带宽度把手,两者可以共存,谁最后写谁生效。
开发
node --check lib/client.js # 语法检查
node test/smoke.mjs # 冒烟测试(需要 playwright-core)
lib/client.js 是手写的模块加载器格式(window.__ModuleLoader__.load),不需要构建。
改完如果 DSH 在跑,客户端模块会通过 HMR 热替换,约 1 秒生效,不用重启。
License
MIT
Comments
Loading…
Similar plugins
Pins the conversation column of the dsh UI to a fixed width — a pixel value or a percentage of the column — from a row in General settings, and hides the built-in drag handles so the width stays put.
★ 0
dsh plugin --profile web add dsh-conversation-widthSession-header button that cycles the conversation width (748-1600px), widening the chat column, composer, and user bubbles together.
★ 0
dsh plugin --profile web add dsh-chat-width-customizerby AnakinCao
DSH Web GUI plugin: adaptive chat content width — the middle area expands with screen resolution (1080p/2K/4K) when side panels are collapsed (injects CSS overriding --dsh-chat-content-width)
★ 0
MIT
JavaScript
Aug 31, 2026
dsh plugin --profile web add dsh-chat-widthby 764475881
Drag-to-resize chat content width for the DeepSeek Harness web UI (748px -> 1040px, draggable handle). · DSH 网页聊天宽度可拖拽调节插件
★ 4
↓ 29/wk
MIT
JavaScript
Sep 28, 2026
dsh plugin --profile web add dsh-chat-widthDSH 消息区自由缩放:拖动右上角把手把对话区搬到任意位置,拖动右下角把手改大小;位置与尺寸自动记住。界面 / 皮肤主题类 UI 插件。
★ 0
MIT
JavaScript
dsh plugin --profile web add dsh-msg-resizeBelow 1024px the sidebar leaves the shell frame entirely and is opened as an overlay drawer from a header button, so the conversation gets the full viewport width; wider layouts are untouched.
★ 0
MIT
JavaScript
dsh plugin --profile web add dsh-mobile-sidebar