Mobile layer for DSH Web: swipe-gesture drawer sidebar with adjustable width, layered back key, bigger tap targets, Enter inserts a newline instead of sending, keyboard avoidance and a 15px font floor.
Install
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:rsbsnv/dsh-mobile-adapt
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,手感更顺一点。
原版界面是按电脑设计的:侧栏挤在一列里、按钮太小不好点、键盘弹出来挡住输入框、字偏小。这个插件把这些都调成适合手指用的样子。
功能
侧栏变成抽屉
- 右滑打开,左滑收起,手指跟着走;
- 宽度可以调:点一下按钮换一档(60% / 75% / 90% / 满屏),按住左右拖能连续调;
- 调过的宽度会记住,下次打开还是那样。
手势
- 右滑:打开侧栏;
- 左滑(侧栏开着时):收起侧栏;
- 返回键:先关弹窗,再关侧栏,不会一不小心退出 App。
会话列表好点也好认
- 标题放大到 16px,长标题折成两行显示,不再一刀切成「手机端 dsh 适配手机交…」;
- 每行的时间(6 分钟 / 1 天)保留并放大,随时知道上次是什么时候聊的;
- 行末只留一个
⋯按钮,归档、置顶、重命名都在它弹出的菜单里,不再占三格; - 按钮放大到 40×40,行高跟着变高,拇指点得准;
- 拖动排序保留原样:按住标题拖就能调整顺序,插件不拦这个手势。
点得准
- 按钮和菜单项放大到手指好按的大小,按下去有反馈;
- 去掉点完要等一下才能点的老毛病。
回车是换行,不是发送
- 软键盘上按回车会在原地换行,不会把半截话直接发出去;
- 想发送还是点右边那个发送按钮;
- 中文输入法选词时的回车照常上屏,不拦。
键盘不挡输入框
- 弹出键盘时界面自动往上让,输入框始终看得见。
字更清楚
- 正文最小 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
Links
More in this category
zhu1090093659/dsh-web#packages/dsh-task-board★ 10715
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★ 10715
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.
ccch1mneyyy/dsh-TUI★ 8617
Claude Code-style full-screen terminal UI: pixel-whale header, live status line, and streaming thought expansion.
MeteorNOX/DeepSeek-Balance-Whale-Widget★ 7532
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.
omdsh-dev/DSH-better-sidebar★ 5410
Full sidebar workbench with file rendering and editing, terminal, Git, and subagents; third-party plugins can register new tabs.
omdsh-dev/dsh-genui★ 1099
Interactive UI components rendered inline in replies: layout, charts, forms, quizzes, mermaid, 3D scenes, and an action event loop back to the model.
Community comments
Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.