mexiaosqwq
dsh-web-mobile
Mobile-adaptive plugin for DeepSeek Harness Web UI: on narrow screens the sidebar becomes an overlay drawer and the conversation gets the full width.
- Stars
- 0
- Language
- JavaScript
- Created
- Aug 15, 2026
- Updated
- Aug 15, 2026
Introduction
dsh-web-mobile
DeepSeek Harness Web UI 移动端适配:窄屏(< 1024px)隐藏左侧 rail,目录变为 overlay 抽屉,会话区独占全宽。纯 client 插件,宽屏下与未安装时一致。
效果
| 会话主页(全宽) | 目录抽屉 | 设置界面 |
|---|---|---|
![]() | ![]() | ![]() |
特性
- 会话全宽:网格改为
1fr 0 0,目录抽屉 overlay 滑入,宽度贴合侧栏内容(约 280px),关闭后完全移出视口,左侧无阴影残留; - 避开摄像头:不做顶部预留空间,打开目录的浮动按钮放在左缘 y=72px(摄像头带下方);
- 会话头部重排:移动端按 [目录按钮] [会话名称] [模式徽标] 排列;Session log 胶囊移到抽屉底部(Settings 旁),复用官方下载逻辑;
- 设置界面适配:官方 800px 双栏弹窗改为近全宽 sheet——导航标签两行全可见、条目保持横向、Appearance 一行三选一、高度自适应、淡入动画;导出对话框保持官方居中卡片;
- 正文排版:消息文字 16px → 15px,左右留白 32px → 20px,行宽更充分;抽屉列表与输入框文字不受影响;
- 输入框防重叠:agent 权限胶囊(盾牌)与模型名不再重叠。
安装
dsh plugin --profile web add github:mexiaosqwq/dsh-web-mobile
仓库自带构建产物,一条命令直接安装,无 allowBuilds 拦截。装完重启 dsh web。
本地开发:dsh plugin --profile web add link:/path/to/dsh-web-mobile
构建
pnpm install
pnpm build
产物 lib/ 与源码同步入库,改动源码后重新构建再提交。
验证
pnpm verify类型检查;dsh --profile web --dump-config应出现插件层;- 移动端(390px):rail 消失、抽屉开合/遮罩/Escape、设置弹窗适配;
- 桌面端(≥1024px):与未安装时一致。
兼容性
需要 :has()(Chromium 105+);prefers-reduced-motion: reduce 下自动禁用动画。

