AcidGr/dsh-web-mobile-fix
DeepSeek Harness (dsh) Web plugin
已收录
5
Ui
Bundle 已验证
功能介绍
Web UI 移动端布局修复:窄屏下设置面板全屏化、插件导航单行排满、侧边栏全屏、弹层居中、会话日志按钮图标化。
适合
- 在手机宽度屏幕上操作设置、侧边栏和弹层的 DSH Web 用户。
- 需要无需修改产品源码、且可撤销的纯 CSS 移动布局调整的部署。
- 不超过文档所述 700 px 断点的窄视口场景。
不适合
- 桌面端或宽于 700 px 的布局;移动端覆盖规则不会生效。
- 需要功能行为增强而非界面呈现修复的工作流。
- 要求选择器在产品重大改版后仍保证兼容的部署;文档说明这些 slot 选择器可能需要更新。
README
dsh-web-mobile-fix
| English | 简体中文 |
Mobile layout fixes for the DeepSeek Harness Web UI.
A pure client-side CSS overlay that repairs the worst mobile breakages on narrow (≤700px viewport) screens, without touching any product source:
- Settings panel becomes a full-screen column layout instead of a squeezed desktop layout
- Directory-picker footer (Cancel / Confirm) pinned to one bottom row
- Sidebar opens full-screen instead of squeezing the conversation
- Settings plugin navigation (4 buttons) fits on a single row
- Session-log button collapses to an icon
- Model name hidden in the composer (chevron only)
- Dropdowns / popups / menus render centered
How it works
The plugin ships a browser half (exports["./client"], declared via dsh.client.platform: "web"), discovered by the client-modules scanner and loaded from the boot manifest. It injects one <style> tag with @media (max-width: 700px) overrides targeting the product’s stable data-slot attributes, and removes the tag on unload — fully reversible.
Requirements
- DeepSeek Harness Web profile (
dsh --profile web), any recent 0.1.x release - Selectors target product slot contracts; they are stable within a version line but may need small updates after a major product revamp
Install
Bundle install (recommended)
Installed from npm:
dsh plugin --profile web add dsh-web-mobile-fix
(No npm / local development — point pnpm at the repo instead:
dsh plugin --profile web add github:AcidGr/dsh-web-mobile-fix
)
Restart dsh web (or wait for the profile hot-reload), then hard-refresh the browser.
Manual install (no pnpm / offline)
PROFILE="$DSH_HOME/profiles/web" # adjust DSH_HOME and profile name
mkdir -p "$PROFILE/plugins" "$PROFILE/node_modules/@dsh-profile"
cp -r dsh-web-mobile-fix "$PROFILE/plugins/mobile-fix"
ln -sfn ../../plugins/mobile-fix "$PROFILE/node_modules/@dsh-profile/mobile-fix"
# append to $PROFILE/cordis.patch.yml:
# - insert:
# - id: mobile-fix
# name: '@dsh-profile/mobile-fix'
Verify
Open the Web UI on a phone-width window — the settings panel, sidebar, and popups should be mobile-adapted.
Rollback
- Bundle install:
dsh plugin --profile web remove dsh-web-mobile-fix - Manual install: delete the
mobile-fixinsert block fromcordis.patch.yml(the plugin dir can stay or go)
No product source is modified; upgrades do not overwrite it.
License
MIT
常见问题常见问题
在启用了 DSH 的终端中执行已验证命令 dsh plugin --profile default add github:AcidGr/dsh-web-mobile-fix。命令会解析公开 package 元数据,并保持插件与本页展示的目录身份一致。
兼容性以页面上展示的 bundle 与 profile 状态为准。如果某个 profile 尚未检测到,请先保持禁用,并在生产启用前阅读仓库文档。
GitHub 链接和 activity 元数据是 release 与维护状态的来源。新版本发布后重新查看本页,确认目录已经观察到最新版本。