TecFancy/dsh-mobile0

@tecfancy/dsh-mobile

DSH web shell mobile adapter plugin: overlay sidebar/details drawers, responsive composer and settings below 768px, zero desktop regression. DSH Web 移动端适配插件:抽屉浮层化、输入栏与设置页响应式适配,桌面零回归。

包名
@tecfancy/dsh-mobile
版本
0.1.7
许可证
MIT
最近更新
2026年8月16日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:TecFancy/dsh-mobile

dsh-mobile

English | 简体中文

A mobile adapter for the DeepSeek Harness (DSH) web shell. The stock shell is desktop-first: below 1024px the sidebar only collapses to a rail, and on phones the expanded drawer squeezes the main column to ~110px, composer buttons overlap, and the settings dialog shrinks to a sliver. dsh-mobile adds the missing phone tier ( Note: if your npm registry is a mirror (e.g. registry.npmmirror.com),

brand-new packages can lag behind the official registry for a while — add --registry=https://registry.npmjs.org/ if the install reports 404.

The plugin activates automatically on narrow viewports (< 768px) and stays inert on desktop. Removing it is one command: dsh plugin --profile web remove @tecfancy/dsh-mobile.

How it works

  • A JS breakpoint layer marks narrow viewports as body[data-dsh-mobile].
  • A state bridge mirrors the shell's layout state onto body[data-dsh-drawer] / body[data-dsh-details].
  • A stylesheet (anchored on the shell's stable [data-slot] hooks) turns the sidebar/details columns into fixed overlays on phones, re-flows the composer and the settings dialog, and never runs outside the mobile tier.

No shell source is modified, no server component is required, and the plugin coexists with other shell-level plugins (verified with dsh-better-sidebar).

Compatibility

  • DSH 0.1.0-rc.6 (tested on macOS and Ubuntu 24.04; full viewport matrix: 360 / 390 / 430 / 768 / 1440).
  • The 768–1023px tablet range keeps the stock shell behavior (by design).
  • prefers-reduced-motion is honored.

License

MIT