dsh-mobile-ui
其他 活跃维护

dsh-mobile-ui

SolarCrown57/dsh-mobile-ui

提供适配手机端屏幕的浏览器UI插件,适配主流移动端浏览场景,移除常驻侧边栏仅保留悬浮汉堡按钮,减少界面占用,操作轻便直观。

0
Stars 标星
0
Forks 分支
0
Watchers 关注
0
Open Issues
JavaScript
主要语言
MIT
开源协议
9 KB
仓库大小
1 个月前
最后推送
一键安装扩展 / 插件指令
dsh plugin --profile web add github:SolarCrown57/dsh-mobile-ui
git clone https://github.com/SolarCrown57/dsh-mobile-ui.git
git clone git@github.com:SolarCrown57/dsh-mobile-ui.git
README.md main

dsh-mobile-ui

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