AcidGr/dsh-web-mobile-fix 预览 preview

AcidGr/dsh-web-mobile-fix

插件Plugin 原生Native ⭐ 5 MIT Web 界面Web UI

DeepSeek 工具集(dsh)Web 插件

项目介绍Project Overview

DSH Web Mobile Fix 是一款客户端 CSS 覆盖插件,修复 DeepSeek Harness Web UI 在 ≤700px 窄屏下的移动端布局问题。它将设置面板改为整列全屏、把侧栏、目录选择器底部按钮和设置导航按钮重排为单行,并把下拉框居中渲染。在 Web 配置下需搭配 DSH 0.1.x 使用,selectors 依赖产品 data-slot 契约,产品重大改版后可能需小幅调整。

DSH Web Mobile Fix is a client-side CSS overlay plugin for the DeepSeek Harness Web UI. It repairs mobile layout breakages on viewports of 700px or narrower by converting the settings panel into a full-screen column, pinning directory-picker buttons to one row, opening the sidebar full-screen, fitting four settings navigation buttons in a single row, collapsing the session-log button to an icon, and centering dropdowns and popups. Use it with the DSH Web profile on any recent 0.1.x release. The plugin targets product data-slot attributes, so selectors may need minor updates after a major product revamp.

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

命令行安装CLI Install

dsh plugin --profile web add dsh-web-mobile-fix

AcidGr/dsh-web-mobile-fix 加入你的 DSH 配置(web profile)即可启用。

READMEREADME

dsh-web-mobile-fix

awesome · DSH plugin

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-fix insert block from cordis.patch.yml (the plugin dir can stay or go)

No product source is modified; upgrades do not overwrite it.

License

MIT

上一个 Prev dsh-vision-sidecar 下一个 Next dsh-desk-pet