Z-6354/dsh-mobile-hanui 预览 preview

Z-6354/dsh-mobile-hanui

基于deepseek-harness(dsh)的手机网页优化插件,修复了部分网页与手机端不适配的问题;

项目介绍Project Overview

dsh-mobile-hanui 是一款 DSH 插件,用于修复 DSH Web 界面在手机端布局错乱的问题。在视口宽度≤1023px 时自动重排:侧边栏改为可滑出的左右抽屉,弹窗全屏居中显示,并提供可拖动的悬浮菜单按钮,支持上滑加载历史消息。适用于在手机浏览器使用 DSH 的场景。注意:需通过 pnpm 安装到指定 profile 目录,并在 package.json 的 dsh.profile.bundles 中手动注册后重启服务才生效。

dsh-mobile-hanui is a DSH plugin that fixes DSH's web UI on mobile devices. When the viewport width is ≤1023px, it automatically restructures the layout: the sidebar becomes swipeable left/right drawers, dialogs are centered full-screen, and a draggable floating menu button is added, with pull-up loading for older history. Use it when accessing DSH from a mobile browser. Note: install via pnpm into the target profile, manually register it in dsh.profile.bundles within package.json, then restart the dsh web service to activate.

或使用命令行安装(适合开发者)Or use CLI install (for developers)

命令行安装CLI Install

dsh plugin --profile web add github:Z-6354/dsh-mobile-hanui

Z-6354/dsh-mobile-hanui 加入你的 DSH 配置(web profile)即可启用。

READMEREADME

dsh-mobile-hanui

让 DeepSeek Harness 的 Web 界面在手机上正常使用。

npm License: MIT

它解决什么问题

DSH 的网页界面是按桌面端设计的,在手机浏览器上会出现侧边栏撑满屏幕、弹窗错位、输入框被裁剪等问题。这个插件会在窄屏(手机 / 窄窗口,视口宽度 ≤ 1023px)下自动把界面调整成适合触屏的布局。

它只影响手机端显示,桌面端没有任何变化。

做了什么

  • 侧边栏、详情面板变成左右抽屉,点一下滑出,不再挤压聊天区
  • 提问、权限确认、设置等弹窗在手机上全屏居中显示,不再被裁掉
  • 悬浮菜单按钮(可拖动),点击/下拉打开侧边栏
  • 上滑到顶部自动加载更早的对话历史
  • 切换会话不再自动弹出软键盘
  • 子代理目录、模型选择、推理等级、模式选择在小屏正常显示

安装

cd ~/.dsh/profiles/web
pnpm add dsh-mobile-hanui

然后在 ~/.dsh/profiles/web/package.jsondsh.profile.bundles 数组里加入 "dsh-mobile-hanui",重启 dsh web 服务。

安装并重启后,在手机打开 DSH 网页即可,无需其它配置。

临时关闭

  • 在网址后加 ?mobileShell=0,或
  • 在浏览器控制台执行 localStorage.setItem('dsh-mobile-shell', '0') 后刷新。

更多

MIT License

上一个 Prev blue 下一个 Next dsh-side-chat