Mobile adaptation for the DSH Web UI on narrow screens: reveal drawer with the chat layer on top, drag gestures, bottom-sheet settings panel, composer and header fixes, zero desktop impact.
Install
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:YiRan0/dsh-mobile-glass
Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time — pnpm blocks those until you allow them, so an install can stop with ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED or ERR_PNPM_IGNORED_BUILDS; dsh prints the exact key to add under allowBuilds in your profile’s pnpm-workspace.yaml, and the install works on the next run. Allowing a build is a trust decision: only install sources you trust, and pin a commit (github:owner/repo#sha).
README
This plugin publishes its README in Chinese only.
DSH Web 移动端适配插件(≤1023px,桌面端 ≥1024px 零影响):聊天页在上/侧栏在下的 reveal 抽屉、拖动手势、设置面板底部卡片上滑、composer 与 header 修复。
功能
- 无底部导航,顶部悬浮玻璃汉堡 ☰ 打开侧栏抽屉(抽屉打开时 ☰ 跟随聊天层右移)。
- 侧栏作为底层 static(永不参与动画),聊天列
translateX右移(reveal)。 - 拖动手势:
setPointerCapture+ rAF 节流 + 方向锁定 + 速度/位移吸附;命中横向可滚动元素(宽表格/代码块)时让位原生横向滚动。 - 用户消息右侧气泡、悬浮圆角自适应输入框:未聚焦为居中紧凑胶囊(不挡聊天),聚焦展开全宽、输入区抬升至约 2.5 行,失焦平滑缩回;输入内容增多时输入区自动增高、完整显示;盾牌/下拉与模型选择器同一行、发送键最右,宽高均 0.32s 平滑过渡。
- 设置面板底部卡片上滑覆盖(
VOzbGW_overlay/panel),导航收成图标栏。 - 头部清理:隐藏 session-log、tabs 与标题对齐、隐藏侧栏自带 toggle、better-sidebar 按钮与 ☰ 对齐。
- PWA:插件自带 Service Worker + 增强 Manifest(Host 侧,零修改 DSH vendor)。
截图
| 移动端主界面 | 侧栏抽屉 |
|---|---|
![]() |
![]() |
| 悬浮输入框 | 设置底部卡片 |
|---|---|
![]() |
![]() |
| 桌面端(零影响) |
|---|
![]() |
安装
dsh plugin --profile web add github:YiRan0/dsh-mobile-glass
安装后重启 dsh web 即可生效。
使用
安装后自动适配移动端,无需额外配置。
PWA(Service Worker + Manifest)
插件 Host 侧通过 webServer 精确路由提供(不修改 DSH 任何 vendor 文件,升级不受影响):
| 路由 | 内容 |
|---|---|
/sw.js |
插件内置 Service Worker(Cache-Control: no-cache,版本更新即时生效) |
/manifest.webmanifest |
增强 Manifest(standalone、主题色、PNG 图标),遮蔽 dist 自带那份 |
/pwa/icon-{192,512,180}.png |
应用图标(assets/pwa/,immutable 缓存) |
首页由 index tap 注入 SW 注册脚本 + apple-touch-icon + theme-color,手机浏览器可"添加到主屏幕"独立运行。
缓存策略
/plugins/*?rev=(rev = bundle 内容 SHA-1)与/assets/*(哈希文件名):cache-first + 后台更新——内容寻址 URL,升级/热更新后 rev 变化自动取新,不会吃到陈旧 bundle;解决 DSH 插件体系下每次刷新全量重下(当前约 26MB)的问题,公网链路二次访问秒开。- 导航:network-first,失败显示内置离线页(不做离线会话——数据在服务器)。
/api/*、/plugins/events(SSE/HMR):完全旁路,绝不缓存。- SW
install时解析首页预缓存插件与静态资源(跳过 >5MB 单文件,超大插件按需缓存)。
维护约定
- 修改缓存策略后 bump
src/pwa.ts的SW_VERSION,浏览器自动更新并清旧缓存。 - 卸载插件后,已注册的 SW 会保留(路由消失但注册在浏览器侧),需手动清除一次:DevTools → Application → Service Workers → Unregister(或清除站点数据)。
已知问题
- 真机拖拽偶发抖动(疑为侧栏
backdrop-filter实时模糊);will-change实验已回退。动画只作用在聊天列。
许可
MIT
Links
More in this category
zhu1090093659/dsh-web#packages/dsh-task-board★ 8178
Task board for the dsh web GUI: a sidebar multi-column kanban whose cards run in real DSH agent sessions and can also be scheduled with cron expressions, executed host-side even with the browser closed.
zhu1090093659/dsh-web#packages/dsh-web-all★ 8178
Plugin and skin collection for the DSH Web UI: task board, Git graph, right-side panel, remote mobile UI, pet, live token stats, and a skin center.
omdsh-dev/DSH-better-sidebar★ 3903
Full sidebar workbench with file rendering and editing, terminal, Git, and subagents; third-party plugins can register new tabs.
ccch1mneyyy/dsh-TUI★ 3815
Claude Code-style full-screen terminal UI: pixel-whale header, live status line, and streaming thought expansion.
MeteorNOX/DeepSeek-Balance-Whale-Widget★ 3514
A fixed-corner whale widget for the DSH web GUI — balance, today's usage and per-turn cost with peak/off-peak pricing, editable balance-alert and daily-budget bubbles, a module-based custom bubble queue with A/B weighted choices and random lines or images, 30+ vendor templates (OpenAI, OpenRouter, Kimi, SiliconFlow, Ark, Zhipu, MiniMax and more) with per-model balance and subscription quota, plus task-end sound, imported audio, custom roles and a resource manager. Local-only, no telemetry.
Devin-AXIS/deepseek-design#deepseek-idesign★ 1711
Visual design studio for websites, app prototypes, posters, cards, reports, and magazines, with templates, direct element editing, selection-aware AI draft handoff, and export.





Community comments
Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.