AnakinCao/dsh-chat-width

AnakinCao★ 0JavaScript最后同步: 2026-08-16

在 GitHub 打开

DSH Web GUI 主编辑区域自适应宽度插件:左右面板折叠后中间区域随分辨率(1080p/2K/4K)自适应变宽 (inject CSS overriding --dsh-chat-content-width)

README 摘要

dsh-chat-width 中文文档: README.zh.md DSH Web GUI 主编辑区域(对话区内容列)自适应宽度插件。 A small DSH (DeepSeek Harness) Web GUI plugin that makes the chat content column adapt to the screen resolution — when both side panels are collapsed, the middle area no longer stays stuck at the fixed 748px. 作用 / What it does DSH 的聊天内容列默认被写死为 748px 宽( --dsh-chat-content-width: 748px ), 左右面板都折叠后中间区域依然很窄、两边留白。本插件注入 CSS 把内容列改为 min(100%, 自适应上限) : - 面板展开 → 内容列恰好填满中间列; - 左右折叠 → 内容列随 当前屏幕/窗口分辨率 自动变宽,最高不超过上限; - 历史用户消息气泡同样跟随内容列宽度(覆盖默认 525px 上限); - 输入框下方的统计行(live-stats TPS 合并行)同样跟随内容列宽度(覆盖其默认 620px 上限)。 The DSH chat content column is hard-coded to 748px. This plugin injects CSS that overrides --dsh-chat-content-width to min(100%, adaptive-cap) : the content column fills the center column, and grows with your screen resolution when the side panels are collapsed. 安装 / Install 方式一(推荐,一条命令,需重启 dsh web): 方式二(免重启,手动挂载): 把下面的内容追加到 /.dsh/profiles/web/cordis.patch.yml , 刷新一次页面 即可(无需重启服务): 并在 /.dsh/profiles/web/node modules/ 下放置本仓库内容(或 pnpm add 安装)。 注意:方式一与方式二二选一,不要重复挂载。 Install via dsh plugin --profile web add (then restart dsh web ), or manually insert the entry above into your profile's cordis.patch.yml (no restart needed, just re…

在 GitHub 查看完整 README →
工具/开发dsh-plugin

分类