dsh-iphone-mode
其他 活跃维护

dsh-iphone-mode

johndfowler/dsh-iphone-mode

为Web管理界面提供移动端触摸优化,完美适配小屏浏览与触控操作,在手机浏览器中也可流畅完成各类管理操作,支持Tailscale等常见远程访问场景下的正常使用。

0
Stars 标星
0
Forks 分支
0
Watchers 关注
0
Open Issues
JavaScript
主要语言
None
开源协议
5 KB
仓库大小
26 天前
最后推送
一键安装扩展 / 插件指令
dsh plugin --profile web add github:johndfowler/dsh-iphone-mode
git clone https://github.com/johndfowler/dsh-iphone-mode.git
git clone git@github.com:johndfowler/dsh-iphone-mode.git
README.md master

dsh-iphone-mode

Mobile/touch optimizations for the DeepSeek Harness (DSH) Web GUI — makes the harness genuinely usable from a phone browser (e.g. over Tailscale).

What it fixes

Problem on iPhone Fix
iOS Safari zooms into any input under 16px on focus (composer, search boxes) and the layout never recovers font-size: 16px on all inputs under @media (pointer: coarse) — desktop untouched
Content hidden under the notch / home indicator viewport-fit=cover + env(safe-area-inset-*) body padding (portrait bottom, landscape sides)
Tiny touch targets gentle 36px minimums on buttons/options under coarse pointers
Stock GUI dialogs render off-viewport at desktop width on a phone (Commands palette "doesn't work" — it opens, you just can't see it; menus clip both edges) viewport clamp: every [class*="_dialog_"] capped to calc(100vw - 24px) on narrow screens, with 16px inputs inside them too

Pure client-side plugin: injects one <style> tag and ensures the viewport meta allows cover fitting. No server-side work.

Install

cd /path/to/your-dsh-profile   # e.g. ~/.dsh/profiles/web
pnpm add github:johndfowler/dsh-iphone-mode
# append "dsh-iphone-mode" to dsh.profile.bundles in package.json
# restart `dsh web`

Pairs with (the mobile stack)

License

MIT