DeepSHPlugins
dsh-sidebar-width 项目预览
GITHUB / COMMUNITY PROJECT

dsh-sidebar-width

UI 增强JavaScriptMIT

调整 Web UI 左侧会话列表栏宽度:调低 264px 拖动下限,可选调整拖动上限与展开默认宽度,启动时自动修补 ui-layout bundle。

1 Starsgarrisonz 更新时间 2026-08-15
访问 GitHub 仓库
dsh-sidebar-width 项目预览

项目介绍

中文

调整 Web UI 左侧会话列表栏宽度:调低 264px 拖动下限,可选调整拖动上限与展开默认宽度,启动时自动修补 ui-layout bundle。

English

Control the Web UI left sidebar width: lower the 264px drag minimum and optionally tune the drag maximum and the expanded default width, applied by a startup patch of the ui-layout bundle.

项目信息与收录信号

快照 2026-09-11
作者 / 组织
garrisonz
仓库
garrisonz/dsh-sidebar-width
GitHub Stars
1
Forks
0
开发语言
JavaScript
许可证
MIT
最近推送
2026-08-15
Manifest
数据中检测到声明

公开仓库不自动等于可商用;许可证与当前兼容性以原项目文档为准。Manifest 和数据评分不构成安装安全认证。

数据评分

50/ 100
维护活跃
81
文档与实用信息
85
生态关注度
9
安装便捷信号
75
项目声明信号
100

README 含完整安装与使用说明;关注度尚低(1)。

评分来自已有数据快照的五维模型,仅作浏览参考,不是实际使用评测或安全检测结论。

安装与使用

所有项目资料与许可均以对应 GitHub 仓库为准。

dsh plugin --profile web add github:garrisonz/dsh-sidebar-width

复制命令不会自动执行。请先阅读仓库文档,确认环境要求与许可证。

项目截图

仓库 README

GitHub 原文

已保存的仓库文档快照;文档抓取时间未记录,可能与上方目录介绍处于不同版本。安装前请核对当前仓库说明。

dsh-sidebar-width

Control the left sidebar (session list) width of the DeepSeek Harness Web UI: lower the drag minimum (official floor 264px), optionally the drag maximum and the expanded default width. Nothing outside the sidebar is touched.

控制 DeepSeek Harness Web UI 左侧会话列表栏宽度:调低拖动下限(官方 264px), 可选调整拖动上限与展开默认宽度。不涉及任何其他功能模块。

Why a patch-style plugin / 为什么是"打补丁"式插件

The sidebar width clamp (clampWidth(px, 264, 420)) and the 280px default are baked into the client bundle @deepseek-ai/dsh-client-ui-layout/lib/client.js (grid solver computeColumns + layout store setSidebar/init/toggle). The client runtime exposes no seam to change them (the store and its actions are private to the bundle), so this plugin patches the served bundle file once at dsh web startup:

侧边栏宽度钳制与默认值写死在客户端 bundle @deepseek-ai/dsh-client-ui-layout/lib/client.js 中(网格求解器 + layout store),客户端运行时没有可改的接缝,因此插件在 dsh web 启动时修补被服务的 bundle 文件:

  • first run backs up to client.js.dsh-sidebar-width.bak / 首次运行先备份
  • idempotent — a marker makes re-runs no-ops; a dsh upgrade replaces the file and the

next startup re-patches / 幂等——升级覆盖文件后下次启动自动重打补丁

  • configurable via the plugin row / 全部数值可配置

Config / 配置

keymeaning / 含义default / 默认
minlower drag bound, px / 拖动下限180
maxupper drag bound, px / 拖动上限keep bundle value (420)
defaultWidthexpanded default width, px / 展开默认宽度keep bundle value (280)
pathabsolute path of the layout client.js / 手动指定 bundle 路径auto-locate

All keys optional. / 全部可选。

Install / 安装

dsh plugin --profile web add dsh-sidebar-width   # npm(推荐)
# 或本地开发: dsh plugin --profile web add link:/path/to/dsh-sidebar-width
# 然后重启 dsh web(插件在启动时打补丁)
dsh plugin requires pnpm on PATH. / 需要 PATH 上有 pnpm。

Tune / 调参

Edit ~/.dsh/profiles/web/cordis.patch.yml (user layer overrides the bundle row):

- id: sidebar-width
  name: 'dsh-sidebar-width'
  config:
    min: 160
    max: 420
    defaultWidth: 240

Restart to apply. / 重启生效。

Uninstall / 卸载

dsh plugin --profile web remove dsh-sidebar-width

The patch itself stays (harmless); restore manually from the backup: 补丁不会自动回滚(无害),可手动还原:

mv <install>/.../dsh-client-ui-layout/lib/client.js.dsh-sidebar-width.bak \
   <install>/.../dsh-client-ui-layout/lib/client.js

Scope / 边界

This plugin's only job is the sidebar width. No UI buttons, no other panels, no settings surface. / 本插件唯一职责就是侧边栏宽度:不加按钮、不动其他面板、不扩功能。

Publish / 发布(for maintainers)

  1. Push the repo to GitHub and add the dsh-plugin topic.
  2. npm publish (name dsh-sidebar-width is free on npm as of 2026-08-15).
  3. Open a PR to awesome-dsh-plugin:

add one line under UI Enhancements / UI 增强 in both README.md and README.zh.md. dsh-market picks the list up automatically.

使用前核对

安装步骤、兼容版本与授权范围以原项目当前文档为准。Stars 和评分是快照中的导航信号。

安装与排错 · 项目问题反馈

同类项目