dsh-at-file
FSMargoo/dsh-at-fileCodex 风格的 `@file` 文件引用,输入框里直接搜索并引用工作区文件。
Web UI 移动端布局修复:窄屏下设置面板全屏化、插件导航单行排满、侧边栏全屏、弹层居中、会话日志按钮图标化。
English | 简体中文
DeepSeek Harness Web UI 的移动端布局修复插件。
纯客户端 CSS 覆盖层,在窄屏(视口 ≤700px)下修复最影响使用的移动端问题,完全不改动产品源码:
插件带一个浏览器端(exports["./client"],通过 dsh.client.platform: "web" 声明),由 client-modules 扫描器发现并随启动清单加载。它注入一个 <style> 标签,内容是针对产品稳定 data-slot 属性的 @media (max-width: 700px) 覆盖;插件卸载时标签自动移除——完全可逆。
dsh --profile web),0.1.x 系列均可直接在 DSH 网页对话框中把本仓库链接发给 AI,并附上指令:
DSH Agent 会自动在后台执行安装命令并完成配置。
直接从 npm 安装:
dsh plugin --profile web add dsh-web-mobile-fix
(本地开发或不想走 npm 时,也支持直接使用 GitHub 仓库地址:
dsh plugin --profile web add github:AcidGr/dsh-web-mobile-fix
)
安装完成后,刷新浏览器页面即可生效。
PROFILE="$DSH_HOME/profiles/web" # 按实际修改 DSH_HOME 和 profile 名
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"
# 在 $PROFILE/cordis.patch.yml 追加:
# - insert:
# - id: mobile-fix
# name: '@dsh-profile/mobile-fix'
用手机或在电脑上将窗口缩至手机宽度(≤700px)打开 Web UI:
dsh plugin --profile web remove dsh-web-mobile-fixcordis.patch.yml 里的 mobile-fix insert 块(插件目录可留可删)不修改任何产品源码,升级不覆盖、无残留。
MIT