@dsh-external/dsh-mobile-ui
手机端 UI 适配:窄屏下把 DSH Web GUI 重构为全屏聊天布局(侧栏/右侧面板改为抽屉,顶部悬浮操作条 + 全屏按钮),默认 ≤860px 生效
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:21hbguo/dsh-mobile-ui说明文档
阅读完整 README ↗配置
两种方式等效(设置页优先):
- 设置页:设置 → 插件 → 「手机端 UI 适配」卡片,直接读写。
- settings.yaml:编辑
~/.dsh/settings.yaml:
mobile-ui:
enabled: true
breakpoint: 860
⚙️ 配置项
命名空间 mobile-ui(设置页卡片「手机端 UI 适配」,已声明 web: true 暴露):
| 字段 | 类型 | 默认 | 说明 |
|---|---|---|---|
enabled | boolean | true | 总开关;关闭即卸载全部适配(样式/操作条/观察器) |
breakpoint | number | 860 | 视口宽度 ≤ 该值(px)时启用移动布局;范围 400–1280,步长 20 |
引擎内部将断点 clamp 到 320–1600px(防御异常配置)。