dsh-mobile-adapt
Manifest valid手机端交互与可读性适配:抽屉式侧栏(滑动开合 + 可调宽度)、滑动手势、触控命中区、软键盘避让、正文字号下限。Mobile interaction & readability layer for DSH Web.
dsh-mobile-adapt
在手机上用 DSH Web,手感更顺一点。
原版界面是按电脑设计的:侧栏挤在一列里、按钮太小不好点、键盘弹出来挡住输入框、字偏小。这个插件把这些都调成适合手指用的样子。
功能
侧栏变成抽屉
- 右滑打开,左滑收起,手指跟着走;
- 宽度可以调:点一下按钮换一档(60% / 75% / 90% / 满屏),按住左右拖能连续调;
- 调过的宽度会记住,下次打开还是那样。
手势
- 右滑:打开侧栏;
- 左滑(侧栏开着时):收起侧栏;
- 返回键:先关弹窗,再关侧栏,不会一不小心退出 App。
点得准
- 按钮和菜单项放大到手指好按的大小,按下去有反馈;
- 去掉点完要等一下才能点的老毛病。
键盘不挡输入框
- 弹出键盘时界面自动往上让,输入框始终看得见。
字更清楚
- 正文最小 15px,输入框固定 16px;
- 你要是自己调过字号,插件不会覆盖,只是保证不会小于 15px。
滚动不跑偏
- 代码块、表格可以单独左右滑,不会把整个页面拖歪。
安装
bash install.sh # 安装
bash install.sh --uninstall # 卸载
装完刷新页面就生效,不用重启。
想自己调
打开 lib/client.js,改这几个:
| 改什么 | 找这个 |
|---|---|
| 多大的屏幕才算手机 | PHONE_QUERY |
| 正文最小字号 | MIN_CONTENT_PX |
| 宽度有哪几档 | WIDTH_STEPS |
| 默认宽度 | DEFAULT_RATIO |
改完重新跑 bash install.sh,刷新页面。
兼容
- 不往顶栏加按钮,也不强行改别的插件的控件大小,和大多数插件能一起用;
- 支持 DSH 0.2 及以后所有版本(没有写死版本上限,市场里升级到高版本 DSH 也不会被判定不兼容);
- 只在窄屏(宽度 ≤767px)生效,电脑上不会改变任何东西。
许可证
MIT
Comments
Loading…
Similar plugins
by 21hbguo
DSH Web GUI 手机端 UI 适配插件:窄屏下全屏聊天布局(抽屉化侧栏/面板 + 顶部操作条 + 返回键退栈),桌面宽度零影响
★ 3
BSD-3-Clause
TypeScript
Aug 16, 2026
dsh plugin --profile web add @dsh-external/dsh-mobile-uiby better-er
「DSH·手机适配」:窄屏下把侧栏收成悬浮小方块,点会话自动收起,并压掉切会话时的自动聚焦,免得软键盘把页面顶起。纯客户端插件。
★ 1
MIT
TypeScript
Oct 8, 2026
dsh plugin --profile web add dsh-mobile-drawerMobile adaptation for the DSH Web UI: compact typography, full-width composer with caret fix, drawer sidebar with overlay-close, two-page settings flow, responsive tables and stats, safe touch targets
★ 0
dsh plugin --profile web add dsh-mobile-cssby lan450
Mobile layout adaptation for the DeepSeek Harness Web UI — no overflow on phones: overlay sidebar, bottom-sheet pickers, two-row question/plan-review cards, safe-area handling. 手机端 UI 适配插件.
★ 0
MIT
JavaScript
Sep 30, 2026
dsh plugin --profile web add dsh-mobile-uiby TecFancy
Mobile adapter for the DSH web shell: overlay sidebar/details drawers, responsive composer and settings below 768px, zero desktop regression.
★ 2
↓ 259/wk
MIT
TypeScript
Sep 23, 2026
dsh plugin --profile web add @tecfancy/dsh-mobileby YiRan0
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.
★ 0
MIT
TypeScript
Aug 18, 2026
dsh plugin --profile web add dsh-mobile-glass