@mdalboni/dsh-mobile
v1.0.0
Published
Mobile viewport lock, overscroll containment, and virtual keyboard optimizations for DSH Web GUI
Maintainers
Readme
dsh-mobile
DeepSeek Harness (DSH) Web GUI 移动端视口锁定、滚动溢出阻断及虚拟键盘交互适配插件。
界面预览
| 移动端会话视图 | 虚拟键盘弹出视图 | 侧边栏展开视图 |
|:---:|:---:|:---:|
|
|
|
|
功能特性
- 视口锁定:防止页面(
html, body)在触摸拖拽时滚入底部黑屏空白区域。 - 滚动阻断:使用
overscroll-behavior-y: contain将滚动锁定在会话容器内。 - 虚拟键盘交互适配:配置
interactive-widget=resizes-content,键盘弹出时自动重塑视口高度。 - 侧边栏自动收起:在移动端点击会话内容区域或选择会话时自动收起侧边栏。
- 防止输入框自动放大:移动端输入框保持
16px字号,防止 iOS/Android 聚焦缩放。
安装方式
添加至 DSH 配置文件(~/.dsh/profiles/web/package.json):
{
"dependencies": {
"@mdalboni/dsh-mobile": "^1.0.0"
},
"dsh": {
"profile": {
"bundles": [
"@mdalboni/dsh-mobile"
]
}
}
}或通过 DSH 命令行安装:
dsh plugin add @mdalboni/dsh-mobile或在 cordis.patch.yml 中配置:
- id: dsh-mobile
name: '@mdalboni/dsh-mobile'许可证
MIT © Maxwell Dalboni
