garrisonz/dsh-sidebar-width

garrisonz★ 0JavaScript最后同步: 2026-08-15

在 GitHub 打开

README 摘要

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 / 配置 key meaning / 含义 default / 默认…

在 GitHub 查看完整 README →
皮肤/UIdsh-pluginweb uisidebar

分类