ook826092-cloud/dsh-mobile-css 预览 preview

ook826092-cloud/dsh-mobile-css

Desktop桌面端 Native原生 ⭐ 2 MIT Clients & Launchers客户端与启动器

Project Overview项目介绍

This is a native DeepSeek Harness (DSH) plugin that adapts the DSH web UI for mobile devices. It works by injecting pure CSS plus two lightweight helper scripts, and integrates via DSH’s official WebServer.tapIndex() hook, so it does not alter DSH source code or impact desktop usage at all. You can install it in one of three ways: run the one-click install command from GitHub, install from npm with the same command structure, or manually add it to your profile’s cordis patch file. After installation, you just need to restart the dsh web service and hard refresh your browser to see the changes.

The plugin includes a full set of mobile-specific UI optimizations: it adjusts font size hierarchy for better readability on small screens, changes the sidebar to a device-native drawer layout that closes when you tap the overlay, fixes common issues like misaligned cursors, accidental taps, and truncated content. It optimizes the composer input area, settings page, message bubbles, and markdown tables to fit mobile screens better. It only activates for touchscreen devices or viewports 1024px wide or smaller, so desktop users never notice any changes. It is ideal for users who frequently access DSH from their mobile phones.

The plugin uses adaptive sizing via media queries and relative units, so it works with any mobile device resolution or pixel density, no hardcoded device specs. It requires a modern Chromium-based browser that supports the CSS :has() selector, which means Chrome 105 or newer, a requirement met by nearly all modern Android and iOS mobile browsers. It is released under the open source MIT license, and does not make any network requests, access credentials, or interact with the file system, so it is completely safe to use. Uninstalling is simple: just remove the plugin entry from your profile patch and restart the dsh web service, with no residual files left behind.

dsh-mobile-css 是专为 DeepSeek Harness(DSH)打造的原生插件,作用是给 DSH 的网页端用户界面做移动端适配,让 DSH 在手机上拥有更贴合移动设备的使用体验。它采用纯 CSS 注入加两个轻量辅助脚本的实现方式,通过 DSH 官方的 WebServer.tapIndex() 钩子完成集成,不会对桌面端的使用体验造成任何影响,零依赖,无需修改 DSH 源码,随时可以卸载。

该插件针对移动端界面做了多方面优化,包括调整字体体系适配小屏,优化侧边栏交互改成符合移动端习惯的抽屉式设计,调整输入区、设置页、消息区的布局,解决误触、光标错位、内容溢出截断等常见移动端问题。用户只要安装插件后重启 DSH web 服务,硬刷新浏览器就能看到适配效果,非常适合经常在手机上使用 DSH 的用户。

该插件支持通过 DSH 包管理器从 GitHub 或 npm 一键安装,也支持手动配置安装,卸载只需要删除配置条目重启服务即可,不会留下残留。它采用 MIT 开源许可证,仅对触屏或宽度≤1024px 的视口生效,要求浏览器支持 Chrome 105 以上版本的 CSS 特性,DSH 大版本更新后可能需要调整少量选择器。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 1 warning1 项注意
  • Only 2 stars - very few users, little community feedback星标只有 2,几乎没人在用,遇到问题缺少社区反馈
DSH walks through these 9 checksDSH 会逐条核对这 9 项

Compatibility兼容性

  • DSH, Node, OS and profile requirementsDSH 版本 / Node 版本 / 操作系统 / profile 是否满足要求
  • External dependencies and runtimes (Electron / Python / Docker, ...)外部依赖与运行时(Electron / Python / Docker 等)是否齐备
  • Conflicts with installed plugins: command names, skill / tool names, ports, duplicate MCP registration与已装插件是否冲突:命令名、skill / tool 重名、端口占用、重复 MCP 注册

Security安全性

  • Repo matches the facts registered here; archived or abandoned?仓库是否与页面登记一致,是否归档或长期停更
  • Safety of preinstall / install / postinstall and install.sh / setup.ps1preinstall / install / postinstall 与 install.sh、setup.ps1 是否安全
  • curl|bash, download-then-execute, obfuscation, unrelated domains → stop immediatelycurl|bash、下载即执行、混淆代码、无关域名 → 立刻停止
  • Typosquatting or unmaintained packages among the new dependencies新增依赖里有没有 typosquatting 或无人维护的包
  • Requested permissions vs. what the feature actually needs申请了哪些权限、是否超出功能所需(filesystem / network / shell / clipboard)
  • Any sudo / admin requirement, plus uninstall and rollback是否要求 sudo / 管理员权限,以及卸载与回滚方式

Anything uncertain must be marked unknown with a note on how to confirm it. This site's signal screen is a static snapshot, not a security audit.拿不准的必须标「未知」并说明要我怎么确认。本站的信号筛查是静态快照,不能替代安全审计。

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

CLI Install命令行安装

dsh plugin --profile web add dsh-mobile-css

把 ook826092-cloud/dsh-mobile-css 加入你的 DSH 配置(web profile)即可启用。

READMEREADME

dsh-mobile-css

Awesome DeepSeek Harness license stars awesome · DSH plugin

DeepSeek Harness(DSH)Web UI 移动端适配插件 —— 让你的 DSH 在手机上真正好用起来!

English | GitHub

纯 CSS 注入 + 两个轻量辅助脚本,零依赖、零源码修改、随时可卸载。 通过官方 WebServer.tapIndex() 钩子注入,桌面端完全不受影响。


✨ 特色功能

📱 界面整体优化

  • 紧凑字号体系:针对手机屏幕调整字体大小层级,信息密度更高、一屏装更多内容,同时保证可读性
  • 移动端字体栈:优先使用手机系统的优质字体(小米 MiSans / 鸿蒙 HarmonyOS Sans / Roboto 等),观感更自然
  • 安全触控目标:独立控件 ≥44px,不再误触;输入框防安卓聚焦自动缩放

🖥️ 输入区(Composer)

  • 输入卡全宽贴边:充分利用屏幕宽度
  • 光标对齐修复:透明输入层与镜像文字层字号严格一致,光标不再错位
  • 模型名智能隐藏:只显示 v 形箭头,点击仍可切换模型,不再挤占权限开关
  • 发送按钮贴右:按钮永远停在右下角

🗂️ 侧边栏抽屉式

  • 展开时覆盖主界面(带遮罩 + 阴影),主界面不再被挤压变形
  • 点击遮罩即可关闭,交互跟手机 App 一致
  • 收起时保留小图标条(rail)

⚙️ 设置页两页式

  • 手机标准交互:全屏菜单页 → 点击选项跳转全屏内容页 → ☰ 返回
  • 标题与按钮同级布局、顶部留白紧凑
  • 长标签自动换行、表单/表格/图片防溢出

💬 消息区

  • 用户消息气泡占满整行,不再又高又窄
  • 消息底部操作条(复制/点赞/分支/统计)换行完整显示,统计单行紧凑
  • 工具调用摘要允许换行,不再被省略号截断

📊 统计行

  • 只保留有用信息,固定两行(耗时+速度 / 缓存+Token),行数不随内容跳变

📋 Markdown 表格

  • 长单元格内容(如工具名)自动换行,不再盖住相邻列

📦 安装教程

方式一:从 GitHub 一键安装(推荐)

dsh plugin --profile web add github:ook826092-cloud/dsh-mobile-css

方式二:从 npm 安装

dsh plugin --profile web add dsh-mobile-css

方式三:手动 patch(不经过包管理器)

将以下内容加入你的 profile patch(~/.dsh/profiles/web/cordis.patch.yml):

- insert:
    - id: dsh-mobile-css
      name: "dsh-mobile-css"

然后安装依赖并启动:

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

安装后

  1. 重启 dsh web
  2. 浏览器硬刷新(清除缓存或隐私窗口)
  3. 打开 DSH Web UI,在手机上感受移动端适配效果

Showing the opening section of the README — the full document lives in the repository以上为 README 开头摘要,完整文档在仓库内 · View the full README on GitHub →在 GitHub 查看完整 README →

← 上一个 Prev dsh-workspace-sidebar 下一个 Next dsh-jump-rail →