Skip to content

dsh-client-ui-sidebar-auto-collapse

Verified

@wangjianxiong/dsh-client-ui-sidebar-auto-collapse · v0.1.6-alpha.4 · MIT · Web UI

Optional UI plugin that collapses the left sidebar while the right sidebar is open

Install

dsh plugin add @wangjianxiong/dsh-client-ui-sidebar-auto-collapse

Confirm the layer applied with dsh --profile default --dump-config — see the install guide.

Source

Published to npm without a public repository. Inspect the package contents before installing.

Creators

Readme


description: "可选的 Web UI 策略插件:根据右侧 Sidebar 的呈现状态同步左侧 Sidebar。" kind: "package-reference"

@wangjianxiong/dsh-client-ui-sidebar-auto-collapse

English | 中文

概述

这是一个可选的浏览器插件:右侧 Sidebar 显示时收起左侧 Sidebar,右侧 Sidebar 隐藏时展开左侧 Sidebar。插件消费 @deepseek-ai/dsh-client-ui-sidebar-right 提供的类型化 ctx.sidebarRight.onPresentationChange() 订阅,并调用幂等的 ctx.layout.setSidebarExpanded()。

该策略适用于所有右侧 Sidebar 标签类型,包括文件预览。将本包从 profile 中移除即可让两个 Sidebar 独立工作。