dsh-mobile-ui

by SolarCrown57

0 UI 增强github 检测到 manifest package.json#dsh收录于 08-16

DSH网页客户端插件,适配手机屏幕的浏览器UI。

A DSH web client plugin that adapts the browser UI for phone screens.

安装

dsh plugin --profile web add github:SolarCrown57/dsh-mobile-ui

GitHub 源码安装:首次需按提示配置 allowBuilds 构建授权后重试

安装与环境配置指引、插件开发教程见 DSH 中文社区文档 ↗

安装即在你的机器上以你的权限运行第三方代码——它可读写文件、使用凭据、访问网络,DSH 的工具审批不会为插件代码加沙箱。「检测到 manifest」仅代表发现 dsh.bundle / dsh.plugin 清单,不构成兼容性或安全审查;安装前请审阅源码,不熟悉的插件先在不含密钥的环境试用。

README

目录

A DSH web client plugin that adapts the browser UI for phone screens.

Features

  • No persistent sidebar on phones — only a floating hamburger button in the top-left corner. Tapping it opens the session sidebar as an animated drawer (with backdrop and close button).
  • Selecting a session closes the drawer automatically.
  • Settings opens as a full-screen sheet with a horizontally scrollable navigation bar.
  • Tool details open as a full-screen overlay on mobile.
  • Compact composer — the idle input bar shows only the centered text field. Tapping it expands the controls with an eased animation.
  • Safe-area insets, larger touch targets, and no horizontal page overflow.
  • Desktop layout is untouched: all mobile rules are scoped behind html[data-dsh-mobile].

Install

Local path (a plain non-bundle DSH plugin, applied live):

dshpm install ./dsh-mobile-ui --profile web

From a Git repository:

dshpm install github:<owner>/dsh-mobile-ui --profile web

How it works

The package declares a dsh.client web client plugin:

  • lib/index.js — empty host-side apply() entry.
  • lib/client.js — browser module that injects mobile CSS, the floating sidebar trigger, drawer chrome, and composer state behavior.

License

MIT

原始 README: https://github.com/SolarCrown57/dsh-mobile-ui/blob/main/README.md ↗