在 DeepSeek Harness Web UI 中,会话详情页通常被限制在固定 748px 的内容列中。在宽显示器上,这会留下不必要的空白。dsh-widescreen 通过在设置中添加一个开关来解决这个问题,允许会话详情页填满中心列的可用宽度。
核心功能¶
- 设置开关:在 Settings → General(设置 → 通用设置)中添加了 Widescreen mode(宽屏模式)开关。
- 全宽内容:当开启时,聊天列、日期分隔符、问题卡片和作曲家卡片扩展以填满中心列的宽度。
- 默认兼容:当关闭时,行为与默认字节对齐(748px 内容列)。
- 容器相对尺寸:仅使用容器相对尺寸(
--dsh-chat-content-width: 100%)。浏览器缩放和窗口调整会保持原有的响应式重排。 - 持久化:偏好保存在 DSH 用户设置文档中,在页面刷新和重启后保持不变。
- 完全可逆:移除插件会恢复默认布局。
安装与启用¶
需要 DSH 0.1.0-rc.x(Web 配置文件)。
- 使用官方插件命令安装:
dsh plugin --profile web add github:Temoa/dsh-widescreen
- 重启
dsh --profile web。 - 打开 Settings → General 并切换 Widescreen mode 开关。
卸载¶
要恢复默认的 748px 布局,请运行:
dsh plugin --profile web remove dsh-widescreen
重启 dsh --profile web。
技术实现¶
- 无构建步骤:仓库在
lib/中包含预构建的工件,因此没有prepare授权或构建脚本。 - 客户端格式:客户端包直接使用官方
window.__ModuleLoader__.load({ id, factory })格式编写。 - 设置集成:通用设置行注册到
settings.general.item槽(顺序 30,位于外观和作曲家回车之后)。
目录与源码¶
- 仓库:github.com/Temoa/dsh-widescreen
- 许可证:MIT