@aipanel/dsh-client 1.2.19 → 1.2.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/client.js +10 -2
  2. package/package.json +2 -2
package/lib/client.js CHANGED
@@ -539,6 +539,7 @@ function apply(ctx, config = {}) {
539
539
  }
540
540
  };
541
541
  const LAYOUT_STYLE_ID = "aipanel-layout-overrides";
542
+ const SIDEBAR_COLUMN_SELECTOR = '[class*="sidebarCol"]';
542
543
  const injectLayoutOverrides = () => {
543
544
  if (!embedded) return;
544
545
  try {
@@ -546,12 +547,19 @@ function apply(ctx, config = {}) {
546
547
  const style = document.createElement("style");
547
548
  style.id = LAYOUT_STYLE_ID;
548
549
  style.textContent = [
549
- "[data-sidebar-collapsed] {",
550
+ // 侧栏列(grid 容器的直接子级)
551
+ `:has(> ${SIDEBAR_COLUMN_SELECTOR}) > ${SIDEBAR_COLUMN_SELECTOR} {`,
552
+ " display: none !important;",
553
+ "}",
554
+ // grid 容器:回收侧栏轨道,覆盖内联 grid-template-columns
555
+ `:has(> ${SIDEBAR_COLUMN_SELECTOR}) {`,
550
556
  " grid-template-columns: auto !important;",
551
557
  "}",
552
- "[data-sidebar-collapsed] > :first-child {",
558
+ // 展开态会渲染侧栏拖拽手柄,一并隐藏
559
+ '[data-side="sidebar"] {',
553
560
  " display: none !important;",
554
561
  "}",
562
+ // 工作区下拉
555
563
  '[aria-label="\u9009\u62E9\u5DE5\u4F5C\u533A"] {',
556
564
  " display: none !important;",
557
565
  "}"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aipanel/dsh-client",
3
- "version": "1.2.19",
3
+ "version": "1.2.20",
4
4
  "type": "module",
5
5
  "description": "AIPanel 浏览器侧插件(dsh web Web Client):注册 @aipanel 文件引用 source,选中元素以 file chip 高亮插入并可供模型解析。",
6
6
  "publishConfig": {
@@ -22,7 +22,7 @@
22
22
  "@types/react": "^18.3.0",
23
23
  "esbuild": "^0.25.0",
24
24
  "react": "^18.3.0",
25
- "@aipanel/core": "1.2.19"
25
+ "@aipanel/core": "1.2.20"
26
26
  },
27
27
  "exports": {
28
28
  ".": "./lib/index.js",