@michengai/dsh-codex-ui 2.0.10 → 2.0.11

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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## 2.0.11 (2026-11-01)
4
+
5
+ - **Decouple plain flat settings mode from mica float mode**: When mica glass is disabled, the settings modal (both expanded and collapsed) renders with seamless flat backgrounds, aligning perfectly with the home view and eliminating redundant margins, border-radius, and shadows.
6
+ - **Eliminate duplicate top bars and parallel curved borders**: Integrated standalone about header and actions into the first feature card header, and made the host titlebar borderless and transparent, resolving button overlap and dual parallel border strokes.
7
+ - **Normalize vertical card offsets across host architectures**: Handled both tiled Grid host (0.2.2-alpha.2+) and legacy nested Flex host (0.2.1-rc.5) geometries, harmonizing the first card baseline (y=84px) in collapsed mode and eliminating stray divider lines inside the 56px icon rail.
8
+ - **Auto-hide empty pinned section in sidebar (#76)**: Automatically hide the pinned header when no workspaces are pinned, and reset collapsed state when all workspaces are removed.
9
+
3
10
  ## 2.0.10 (2026-11-01)
4
11
 
5
12
  - **Align Collapsed Settings Sidebar with Homepage 56px Icon Rail**: Replicate the host homepage collapsed sidebar design language inside the settings modal. Replace the cramped narrow view with a clean 56px floating Mica icon rail, centering icons along the vertical axis with hidden scrollbars and seamlessly integrating the back button.
@@ -1,5 +1,12 @@
1
1
  # 更新日志
2
2
 
3
+ ## 2.0.11 (2026-11-01)
4
+
5
+ - **设置面板普通模式与云母磨砂模式严格解耦**:未开启云母悬浮时,设置页(展开与收起)完全恢复平铺纯色底板,与首页无云母状态绝对对齐,消除多余的外边距、圆角与投影。
6
+ - **根治设置页顶部双层伪顶栏与平行圆角双边框**:将关于页中独立的标题与操作区收拢整合至首张功能卡片内,宿主原生顶栏改为无边框完全透明,彻底解决「打开配置文件」与插件操作按钮重叠、以及右侧顶部两条平行圆角线的视觉撕裂。
7
+ - **完善双宿主架构下的首卡纵向定位与间距自适应**:精准处理平铺 Grid 宿主(0.2.2-alpha.2+)与嵌套 Flex 宿主(0.2.1-rc.5)下的不同顶栏机制,统一各端折叠态下首张卡片的渲染基线(y=84px),消灭 56px 导轨内部横向残留短线。
8
+ - **侧栏置顶区智能联动隐藏 (#76)**:当所有工作区均未置顶时,侧栏「置顶」分区标题与占位自动隐形,并在清空全部工作区时主动复位折叠记忆。
9
+
3
10
  ## 2.0.10 (2026-11-01)
4
11
 
5
12
  - **设置侧边栏收缩态完整对齐首页 56px 纯图标导轨**:在设置弹窗中完整复刻宿主首页侧栏的云母悬浮设计语言。将收缩态由简陋的挤压视图升级为 56px 独立磨砂悬浮导轨,隐形原生滚动条并实现图标与顶部返回按钮在中轴线上绝对居中。
package/lib/client.js CHANGED
@@ -2584,12 +2584,10 @@ html[data-dsh-glass] body:not([data-ds-dark-theme]) .dcu-section-card {
2584
2584
  const endpoint = CODEX_UI_API_ENDPOINTS.dependencies;
2585
2585
  const stylesheet = `
2586
2586
  .dcu-about{color:var(--dsw-alias-label-primary);font-family:var(--dsw-font-family);display:flex;flex-direction:column}
2587
- .dcu-about-head{display:flex;flex-direction:column;align-items:stretch;gap:12px;margin-bottom:16px}
2588
- .dcu-about-title-block{min-width:0}
2589
- .dcu-about h2,.dcu-about-title{margin:0;font-size:24px;line-height:32px;font-weight:600;letter-spacing:-.4px;color:var(--dsw-alias-label-primary)}
2590
- .dcu-about-title-row{display:flex;align-items:center;gap:8px 12px;min-width:0;flex-wrap:wrap}
2591
2587
  .dcu-about-feedback-links,.dcu-about-links{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
2592
2588
  .dcu-about-version{margin-left:8px;color:var(--dsw-alias-label-tertiary);font-family:inherit;font-size:12px;font-weight:500;line-height:18px;letter-spacing:0;white-space:nowrap;vertical-align:baseline}
2589
+ .dcu-section-subtitle-wrap{margin-top:-4px;margin-bottom:4px}
2590
+ .dcu-section-subtitle{font-size:13px;font-weight:600;color:var(--dsw-alias-label-secondary)}
2593
2591
  .dcu-subplugins-list{display:flex;flex-direction:column;gap:6px}
2594
2592
  .dcu-subplugin-item{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 12px;background:var(--dsw-alias-bg-layer-1,rgba(255,255,255,0.03));border:1px solid var(--dsw-alias-border-l1,rgba(255,255,255,0.06));border-radius:8px;transition:background-color 120ms ease}
2595
2593
  .dcu-subplugin-item:hover{background:var(--dsw-alias-interactive-bg-hover,rgba(255,255,255,0.05))}
@@ -2840,17 +2838,22 @@ html[data-dsh-glass] body:not([data-ds-dark-theme]) .dcu-section-card{background
2840
2838
  "aria-label": t("about.nav"),
2841
2839
  children: [
2842
2840
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)("style", { children: stylesheet }),
2843
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
2844
- className: "dcu-about-head",
2845
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
2846
- className: "dcu-about-title-block",
2847
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
2848
- className: "dcu-about-title-row",
2849
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("h2", {
2850
- className: "dcu-about-title",
2851
- children: [t("about.title"), selfVersion === void 0 ? null : /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
2852
- className: "dcu-about-version",
2853
- children: ["v", selfVersion]
2841
+ /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
2842
+ className: "dcu-section-card dcu-card-features",
2843
+ children: [
2844
+ /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
2845
+ className: "dcu-section-header",
2846
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
2847
+ className: "dcu-section-title-wrap",
2848
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("h3", {
2849
+ className: "dcu-section-title",
2850
+ children: [t("about.title"), selfVersion === void 0 ? null : /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
2851
+ className: "dcu-about-version",
2852
+ children: ["v", selfVersion]
2853
+ })]
2854
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
2855
+ className: "dcu-section-desc",
2856
+ children: t("about.description")
2854
2857
  })]
2855
2858
  }), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
2856
2859
  className: "dcu-about-feedback-links dcu-about-links",
@@ -2888,42 +2891,34 @@ html[data-dsh-glass] body:not([data-ds-dark-theme]) .dcu-section-card{background
2888
2891
  })
2889
2892
  ]
2890
2893
  })]
2891
- })
2892
- })
2893
- }),
2894
- /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
2895
- className: "dcu-section-card dcu-card-features",
2896
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
2897
- className: "dcu-section-header",
2898
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
2899
- className: "dcu-section-title-wrap",
2900
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("h3", {
2901
- className: "dcu-section-title",
2894
+ }),
2895
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
2896
+ className: "dcu-section-subtitle-wrap",
2897
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
2898
+ className: "dcu-section-subtitle",
2902
2899
  children: t("about.features")
2903
- }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
2904
- className: "dcu-section-desc",
2905
- children: t("about.description")
2906
- })]
2907
- })
2908
- }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
2909
- className: "dcu-subplugins-list",
2910
- children: SUB_PLUGINS.map((item) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
2911
- className: "dcu-subplugin-item",
2912
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
2913
- className: "dcu-subplugin-header",
2914
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
2915
- className: "dcu-subplugin-name",
2916
- children: t(item.nameKey)
2917
- }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("code", {
2918
- className: "dcu-subplugin-badge",
2919
- children: item.id
2900
+ })
2901
+ }),
2902
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
2903
+ className: "dcu-subplugins-list",
2904
+ children: SUB_PLUGINS.map((item) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
2905
+ className: "dcu-subplugin-item",
2906
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
2907
+ className: "dcu-subplugin-header",
2908
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
2909
+ className: "dcu-subplugin-name",
2910
+ children: t(item.nameKey)
2911
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("code", {
2912
+ className: "dcu-subplugin-badge",
2913
+ children: item.id
2914
+ })]
2915
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
2916
+ className: "dcu-subplugin-desc",
2917
+ children: t(item.descKey)
2920
2918
  })]
2921
- }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
2922
- className: "dcu-subplugin-desc",
2923
- children: t(item.descKey)
2924
- })]
2925
- }, item.id))
2926
- })]
2919
+ }, item.id))
2920
+ })
2921
+ ]
2927
2922
  }),
2928
2923
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ThemeSettingsCard, { t }),
2929
2924
  /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
@@ -3120,7 +3115,7 @@ html[data-dsh-glass] body:not([data-ds-dark-theme]) .dcu-section-card{background
3120
3115
  "about.feedback": "问题反馈",
3121
3116
  "about.checkUpdate": "检查更新",
3122
3117
  "about.checking": "正在检查更新…",
3123
- "about.description": "为 DSH 提供输入框增强、全屏设置工作台美化与生态插件管理。",
3118
+ "about.description": "输入框增强、全屏设置工作台美化与生态插件管理。",
3124
3119
  "about.features": "包含子插件与功能",
3125
3120
  "about.feature.composer.name": "输入框增强 (Composer)",
3126
3121
  "about.feature.composer": "终端风格输入历史(↑/↓)快捷召回、自适应宽度调节与会话建议卡片",
@@ -3289,7 +3284,7 @@ html[data-dsh-glass] body:not([data-ds-dark-theme]) .dcu-section-card{background
3289
3284
  "about.feedback": "Issues",
3290
3285
  "about.checkUpdate": "Check for updates",
3291
3286
  "about.checking": "Checking…",
3292
- "about.description": "Adds input enhancements, fullscreen settings workbench skin, and ecosystem plugin management to DSH.",
3287
+ "about.description": "Input enhancement, fullscreen settings workbench skin, and ecosystem plugin management.",
3293
3288
  "about.features": "Built-in Sub-plugins & Capabilities",
3294
3289
  "about.feature.composer.name": "Composer Enhancements",
3295
3290
  "about.feature.composer": "Terminal-style input history (↑/↓), adaptive width resizing, and starter suggestions",
@@ -4469,7 +4464,7 @@ html[data-ds-theme-source="light"] [data-shortcut-modal="settings"]:not(:has(> [
4469
4464
  flex: none !important;
4470
4465
  }
4471
4466
 
4472
- /* 顶部操作区(打开配置文件 + 关闭按钮):整行 56px 顶栏,精准对齐老版标准头部 */
4467
+ /* 顶部操作区(打开配置文件 + 关闭按钮):普通模式下透明浮动,无实体白条与下边框,绝不硬切出第二层顶部 */
4473
4468
  [data-shortcut-modal="settings"]:has(> [class*="options"]) > [class*="header"] {
4474
4469
  grid-column: 2 !important;
4475
4470
  grid-row: 1 / -1 !important;
@@ -4481,14 +4476,16 @@ html[data-ds-theme-source="light"] [data-shortcut-modal="settings"]:not(:has(> [
4481
4476
  min-height: 56px !important;
4482
4477
  box-sizing: border-box !important;
4483
4478
  padding: 0 32px !important;
4484
- border-bottom: 1px solid var(--dsw-alias-border-l1, rgba(255, 255, 255, 0.08)) !important;
4479
+ border: none !important;
4480
+ border-bottom: none !important;
4485
4481
  display: flex !important;
4486
4482
  align-items: center !important;
4487
4483
  justify-content: flex-end !important;
4488
4484
  gap: 12px !important;
4489
- background: var(--dsw-alias-bg-layer-2, #18181b) !important;
4485
+ background: transparent !important;
4490
4486
  z-index: 10 !important;
4491
4487
  margin: 0 !important;
4488
+ pointer-events: none !important;
4492
4489
  }
4493
4490
 
4494
4491
  [data-shortcut-modal="settings"]:has(> [class*="options"]) > [class*="header"] > * {
@@ -4544,8 +4541,9 @@ html[data-ds-theme-source="light"] [data-shortcut-modal="settings"]:has(> [class
4544
4541
 
4545
4542
  body:not([data-ds-dark-theme]) [data-shortcut-modal="settings"]:has(> [class*="options"]) > [class*="header"],
4546
4543
  html[data-ds-theme-source="light"] [data-shortcut-modal="settings"]:has(> [class*="options"]) > [class*="header"] {
4547
- background: var(--dsw-alias-bg-layer-1, #ffffff) !important;
4548
- border-bottom: 1px solid var(--dsw-alias-border-l1, rgba(0, 0, 0, 0.08)) !important;
4544
+ background: transparent !important;
4545
+ border: none !important;
4546
+ border-bottom: none !important;
4549
4547
  }
4550
4548
 
4551
4549
  body:not([data-ds-dark-theme]) [data-shortcut-modal="settings"]:has(> [class*="options"]) > [class*="options"],
@@ -4604,22 +4602,25 @@ html[data-dsh-glass-float] [data-shortcut-modal="settings"]:has(> [class*="optio
4604
4602
  min-height: 56px !important;
4605
4603
  box-sizing: border-box !important;
4606
4604
  padding: 0 32px !important;
4607
- border-radius: 16px 16px 0 0 !important;
4608
- border: 1px solid var(--dsh-glass-rim-soft, rgba(255, 255, 255, 0.08)) !important;
4609
- border-bottom: 1px solid var(--dsw-alias-border-l1, rgba(255, 255, 255, 0.08)) !important;
4610
- background: var(--dsw-alias-bg-layer-1) !important;
4605
+ border: none !important;
4606
+ border-radius: 0 !important;
4607
+ background: transparent !important;
4611
4608
  display: flex !important;
4612
4609
  align-items: center !important;
4613
4610
  justify-content: flex-end !important;
4614
4611
  gap: 12px !important;
4615
4612
  z-index: 10 !important;
4613
+ pointer-events: none !important;
4614
+ }
4615
+
4616
+ html[data-dsh-glass-float] [data-shortcut-modal="settings"]:has(> [class*="options"]) > [class*="header"] > * {
4617
+ pointer-events: auto !important;
4616
4618
  }
4617
4619
 
4618
4620
  html[data-dsh-glass-float] body:not([data-ds-dark-theme]) [data-shortcut-modal="settings"]:has(> [class*="options"]) > [class*="header"],
4619
4621
  html[data-dsh-glass-float] html[data-ds-theme-source="light"] [data-shortcut-modal="settings"]:has(> [class*="options"]) > [class*="header"] {
4620
- background: var(--dsw-alias-bg-layer-1, #ffffff) !important;
4621
- border: 1px solid var(--dsh-glass-rim-soft, rgba(0, 0, 0, 0.08)) !important;
4622
- border-bottom: 1px solid var(--dsw-alias-border-l1, rgba(0, 0, 0, 0.08)) !important;
4622
+ background: transparent !important;
4623
+ border: none !important;
4623
4624
  }
4624
4625
 
4625
4626
  html[data-dsh-glass-float] [data-shortcut-modal="settings"]:has(> [class*="options"]) > [class*="options"] {
@@ -4633,22 +4634,143 @@ html[data-dsh-glass-float] [data-shortcut-modal="settings"]:has(> [class*="optio
4633
4634
  padding-inline: 36px !important;
4634
4635
  }
4635
4636
 
4636
- /* 无论窗口 <=768px 还是处于收起态 [data-sidebar-collapsed],均完整复刻宿主首页云母悬浮 56px 导轨 */
4637
+ /* 无论窗口 <=768px 还是处于收起态 [data-sidebar-collapsed],结构尺寸均收敛为 56px 导轨 */
4637
4638
  [data-shortcut-modal="settings"][data-sidebar-collapsed],
4638
4639
  html[data-dsh-glass-float] [data-shortcut-modal="settings"][data-sidebar-collapsed],
4639
4640
  html[data-dsh-glass] [data-shortcut-modal="settings"][data-sidebar-collapsed] {
4640
4641
  --dcu-settings-nav-width: 56px !important;
4641
4642
  }
4642
4643
 
4643
- [data-shortcut-modal="settings"][data-sidebar-collapsed]:has(> [class*="options"]),
4644
- html[data-dsh-glass-float] [data-shortcut-modal="settings"][data-sidebar-collapsed]:has(> [class*="options"]),
4645
- html[data-dsh-glass] [data-shortcut-modal="settings"][data-sidebar-collapsed]:has(> [class*="options"]) {
4644
+ [data-shortcut-modal="settings"][data-sidebar-collapsed]:has(> [class*="options"]) {
4645
+ grid-template-columns: 56px minmax(0, 1fr) !important;
4646
+ }
4647
+
4648
+ /* --- 普通纯色原生模式(未开启云母)下的收起态:与普通展开态完全一致,平铺紧贴,0 外边距、0 圆角、0 磨砂、0 阴影 --- */
4649
+ html:not([data-dsh-glass-float]) [data-shortcut-modal="settings"][data-sidebar-collapsed]:has(> [class*="options"]) {
4650
+ gap: 0 !important;
4651
+ padding: 0 !important;
4652
+ background: var(--dsw-alias-bg-base, #151517) !important;
4653
+ }
4654
+
4655
+ html:not([data-dsh-glass-float]) [data-shortcut-modal="settings"][data-sidebar-collapsed]:has(> [class*="options"]) > [class*="navTitle"] {
4656
+ grid-column: 1 !important;
4657
+ grid-row: 1 !important;
4658
+ box-sizing: border-box !important;
4659
+ width: 56px !important;
4660
+ min-width: 56px !important;
4661
+ max-width: 56px !important;
4662
+ padding: 14px 0 10px 0 !important;
4663
+ margin: 0 !important;
4664
+ align-items: center !important;
4665
+ justify-content: center !important;
4666
+ border-radius: 0 !important;
4667
+ border: none !important;
4668
+ border-right: 1px solid var(--dsw-alias-border-l1, rgba(255, 255, 255, 0.08)) !important;
4669
+ border-bottom: none !important;
4670
+ background: var(--dsw-specific-sidebar-fill, var(--dsw-alias-bg-layer-1, #18181b)) !important;
4671
+ backdrop-filter: none !important;
4672
+ -webkit-backdrop-filter: none !important;
4673
+ box-shadow: none !important;
4674
+ flex: none !important;
4675
+ }
4676
+
4677
+ html:not([data-dsh-glass-float]) [data-shortcut-modal="settings"][data-sidebar-collapsed] > nav {
4678
+ box-sizing: border-box !important;
4679
+ width: 56px !important;
4680
+ min-width: 56px !important;
4681
+ max-width: 56px !important;
4682
+ margin: 0 !important;
4683
+ padding: 12px 0 16px !important;
4684
+ border-radius: 0 !important;
4685
+ border: none !important;
4686
+ border-right: 1px solid var(--dsw-alias-border-l1, rgba(255, 255, 255, 0.08)) !important;
4687
+ background: var(--dsw-specific-sidebar-fill, var(--dsw-alias-bg-layer-1, #18181b)) !important;
4688
+ backdrop-filter: none !important;
4689
+ -webkit-backdrop-filter: none !important;
4690
+ box-shadow: none !important;
4691
+ overflow-y: auto !important;
4692
+ overflow-x: hidden !important;
4693
+ scrollbar-width: none !important;
4694
+ -ms-overflow-style: none !important;
4695
+ display: flex !important;
4696
+ flex-direction: column !important;
4697
+ align-items: center !important;
4698
+ gap: 0 !important;
4699
+ }
4700
+
4701
+ html:not([data-dsh-glass-float]) [data-shortcut-modal="settings"][data-sidebar-collapsed]:not(:has(> [class*="options"])) > div:not(nav) {
4702
+ margin: 0 !important;
4703
+ border-radius: 0 !important;
4704
+ border: none !important;
4705
+ box-shadow: none !important;
4706
+ background: var(--dsw-alias-bg-base, #151517) !important;
4707
+ height: 100% !important;
4708
+ max-height: 100% !important;
4709
+ overflow: hidden !important;
4710
+ display: flex !important;
4711
+ flex-direction: column !important;
4712
+ }
4713
+
4714
+ html:not([data-dsh-glass-float]) [data-shortcut-modal="settings"][data-sidebar-collapsed]:not(:has(> [class*="options"])) > div:not(nav) > :first-child {
4715
+ background: transparent !important;
4716
+ border: none !important;
4717
+ border-bottom: none !important;
4718
+ flex: none !important;
4719
+ }
4720
+
4721
+ html:not([data-dsh-glass-float]) [data-shortcut-modal="settings"][data-sidebar-collapsed]:not(:has(> [class*="options"])) > div:not(nav) > :nth-child(2) {
4722
+ margin: 0 !important;
4723
+ border-radius: 0 !important;
4724
+ border: none !important;
4725
+ box-shadow: none !important;
4726
+ background: transparent !important;
4727
+ overflow-y: auto !important;
4728
+ flex: 1 1 auto !important;
4729
+ min-height: 0 !important;
4730
+ padding-top: 28px !important;
4731
+ padding-bottom: 64px !important;
4732
+ padding-inline: 48px !important;
4733
+ box-sizing: border-box !important;
4734
+ }
4735
+
4736
+ html:not([data-dsh-glass-float]) [data-shortcut-modal="settings"][data-sidebar-collapsed]:has(> [class*="options"]) > [class*="options"] {
4737
+ margin: 0 !important;
4738
+ border-radius: 0 !important;
4739
+ border: none !important;
4740
+ box-shadow: none !important;
4741
+ background: var(--dsw-alias-bg-base, #151517) !important;
4742
+ overflow-y: auto !important;
4743
+ height: 100% !important;
4744
+ max-height: 100% !important;
4745
+ padding-top: calc(56px + 28px) !important;
4746
+ padding-bottom: 64px !important;
4747
+ padding-inline: 48px !important;
4748
+ box-sizing: border-box !important;
4749
+ }
4750
+
4751
+ /* 浅色普通模式下的收起态高对比度平铺底板 */
4752
+ html:not([data-dsh-glass-float]) body:not([data-ds-dark-theme]) [data-shortcut-modal="settings"][data-sidebar-collapsed] > nav,
4753
+ html:not([data-dsh-glass-float]) html[data-ds-theme-source="light"] [data-shortcut-modal="settings"][data-sidebar-collapsed] > nav,
4754
+ html:not([data-dsh-glass-float]) body:not([data-ds-dark-theme]) [data-shortcut-modal="settings"][data-sidebar-collapsed]:has(> [class*="options"]) > [class*="navTitle"],
4755
+ html:not([data-dsh-glass-float]) html[data-ds-theme-source="light"] [data-shortcut-modal="settings"][data-sidebar-collapsed]:has(> [class*="options"]) > [class*="navTitle"] {
4756
+ background: var(--dsw-specific-sidebar-fill, var(--dsw-alias-bg-layer-1, #f3f3f4)) !important;
4757
+ border-right: 1px solid var(--dsw-alias-border-l1, rgba(0, 0, 0, 0.08)) !important;
4758
+ }
4759
+
4760
+ html:not([data-dsh-glass-float]) body:not([data-ds-dark-theme]) [data-shortcut-modal="settings"][data-sidebar-collapsed]:not(:has(> [class*="options"])) > div:not(nav),
4761
+ html:not([data-dsh-glass-float]) html[data-ds-theme-source="light"] [data-shortcut-modal="settings"][data-sidebar-collapsed]:not(:has(> [class*="options"])) > div:not(nav),
4762
+ html:not([data-dsh-glass-float]) body:not([data-ds-dark-theme]) [data-shortcut-modal="settings"][data-sidebar-collapsed]:has(> [class*="options"]) > [class*="options"],
4763
+ html:not([data-dsh-glass-float]) html[data-ds-theme-source="light"] [data-shortcut-modal="settings"][data-sidebar-collapsed]:has(> [class*="options"]) > [class*="options"] {
4764
+ background: var(--dsw-alias-bg-base, #ffffff) !important;
4765
+ }
4766
+
4767
+ /* --- 仅在开启云母悬浮模式(html[data-dsh-glass-float])下,才启用 12px 悬浮双岛、16px 圆角大卡片与磨砂投影 --- */
4768
+ html[data-dsh-glass-float] [data-shortcut-modal="settings"][data-sidebar-collapsed]:has(> [class*="options"]) {
4646
4769
  grid-template-columns: 56px minmax(0, 1fr) !important;
4647
4770
  gap: 0 12px !important;
4648
4771
  padding: 8px 12px 12px 12px !important;
4649
4772
  }
4650
4773
 
4651
- [data-shortcut-modal="settings"][data-sidebar-collapsed]:has(> [class*="options"]) > [class*="navTitle"],
4652
4774
  html[data-dsh-glass-float] [data-shortcut-modal="settings"][data-sidebar-collapsed]:has(> [class*="options"]) > [class*="navTitle"] {
4653
4775
  grid-column: 1 !important;
4654
4776
  grid-row: 1 !important;
@@ -4669,8 +4791,6 @@ html[data-dsh-glass-float] [data-shortcut-modal="settings"][data-sidebar-collaps
4669
4791
  flex: none !important;
4670
4792
  }
4671
4793
 
4672
- /* 旧版/标准嵌套结构:整个 nav 自身就是唯一的单层悬浮岛,内部绝不允许画任何边框或背景! */
4673
- [data-shortcut-modal="settings"][data-sidebar-collapsed]:not(:has(> [class*="options"])) > nav,
4674
4794
  html[data-dsh-glass-float] [data-shortcut-modal="settings"][data-sidebar-collapsed]:not(:has(> [class*="options"])) > nav {
4675
4795
  box-sizing: border-box !important;
4676
4796
  width: 56px !important;
@@ -4694,6 +4814,64 @@ html[data-dsh-glass-float] [data-shortcut-modal="settings"][data-sidebar-collaps
4694
4814
  gap: 0 !important;
4695
4815
  }
4696
4816
 
4817
+ html[data-dsh-glass-float] [data-shortcut-modal="settings"][data-sidebar-collapsed]:has(> [class*="options"]) > nav {
4818
+ grid-column: 1 !important;
4819
+ grid-row: 2 !important;
4820
+ box-sizing: border-box !important;
4821
+ width: 56px !important;
4822
+ min-width: 56px !important;
4823
+ max-width: 56px !important;
4824
+ height: 100% !important;
4825
+ max-height: 100% !important;
4826
+ margin: 0 !important;
4827
+ padding: 0 0 16px !important;
4828
+ flex: none !important;
4829
+ border: 1px solid var(--dsh-glass-rim-soft, rgba(0, 0, 0, 0.08)) !important;
4830
+ border-top: none !important;
4831
+ border-radius: 0 0 16px 16px !important;
4832
+ box-shadow: var(--dsh-glass-drop, 0 8px 24px rgba(0, 0, 0, 0.08)) !important;
4833
+ background: var(--dsh-glass-card, var(--dsw-specific-sidebar-fill, #18181b)) !important;
4834
+ backdrop-filter: blur(var(--dsh-glass-blur, 16px)) !important;
4835
+ -webkit-backdrop-filter: blur(var(--dsh-glass-blur, 16px)) !important;
4836
+ overflow-y: auto !important;
4837
+ overflow-x: hidden !important;
4838
+ scrollbar-width: none !important;
4839
+ -ms-overflow-style: none !important;
4840
+ display: flex !important;
4841
+ flex-direction: column !important;
4842
+ align-items: center !important;
4843
+ }
4844
+
4845
+ html[data-dsh-glass-float] [data-shortcut-modal="settings"][data-sidebar-collapsed]:not(:has(> [class*="options"])) > div:not(nav) {
4846
+ margin: 8px 12px 12px 0 !important;
4847
+ border-radius: 16px !important;
4848
+ border: 1px solid var(--dsh-glass-rim-soft, rgba(0, 0, 0, 0.08)) !important;
4849
+ box-shadow: var(--dsh-glass-drop, 0 8px 24px rgba(0, 0, 0, 0.08)), inset 0 1px 0 rgba(255, 255, 255, 0.6) !important;
4850
+ background: var(--dsw-alias-bg-layer-1) !important;
4851
+ overflow-y: auto !important;
4852
+ height: calc(100% - 20px) !important;
4853
+ }
4854
+
4855
+ html[data-dsh-glass-float] [data-shortcut-modal="settings"][data-sidebar-collapsed]:has(> [class*="options"]) > [class*="options"] {
4856
+ grid-column: 2 !important;
4857
+ grid-row: 1 / -1 !important;
4858
+ box-sizing: border-box !important;
4859
+ flex: 1 1 auto !important;
4860
+ min-width: 0 !important;
4861
+ min-height: 0 !important;
4862
+ overflow-y: auto !important;
4863
+ padding-top: calc(52px + 20px) !important;
4864
+ padding-bottom: 40px !important;
4865
+ padding-inline: 20px !important;
4866
+ margin: 0 !important;
4867
+ border-radius: 16px !important;
4868
+ border: 1px solid var(--dsh-glass-rim-soft, rgba(0, 0, 0, 0.08)) !important;
4869
+ box-shadow: var(--dsh-glass-drop, 0 8px 24px rgba(0, 0, 0, 0.08)), inset 0 1px 0 rgba(255, 255, 255, 0.6) !important;
4870
+ background: var(--dsw-alias-bg-layer-1) !important;
4871
+ height: 100% !important;
4872
+ max-height: 100% !important;
4873
+ }
4874
+
4697
4875
  [data-shortcut-modal="settings"][data-sidebar-collapsed] nav::-webkit-scrollbar,
4698
4876
  [data-shortcut-modal="settings"][data-sidebar-collapsed] [class*="navList"]::-webkit-scrollbar {
4699
4877
  display: none !important;
@@ -4846,25 +5024,53 @@ html[data-dsh-glass-float] [data-shortcut-modal="settings"][data-sidebar-collaps
4846
5024
  flex: none !important;
4847
5025
  }
4848
5026
 
4849
- [data-shortcut-modal="settings"][data-sidebar-collapsed]:has(> [class*="options"]) > [class*="header"],
5027
+ /* 顶栏操作区(配置文件与关闭按钮):普通模式下透明浮动,无实体白条与下边框,绝不硬切出第二层顶部 */
5028
+ html:not([data-dsh-glass-float]) [data-shortcut-modal="settings"][data-sidebar-collapsed]:has(> [class*="options"]) > [class*="header"] {
5029
+ grid-column: 2 !important;
5030
+ grid-row: 1 / -1 !important;
5031
+ position: absolute !important;
5032
+ top: 0 !important;
5033
+ left: 0 !important;
5034
+ right: 0 !important;
5035
+ height: 56px !important;
5036
+ min-height: 56px !important;
5037
+ padding: 0 20px !important;
5038
+ border-radius: 0 !important;
5039
+ border: none !important;
5040
+ border-bottom: none !important;
5041
+ background: transparent !important;
5042
+ z-index: 10 !important;
5043
+ pointer-events: none !important;
5044
+ }
5045
+
5046
+ html:not([data-dsh-glass-float]) body:not([data-ds-dark-theme]) [data-shortcut-modal="settings"][data-sidebar-collapsed]:has(> [class*="options"]) > [class*="header"],
5047
+ html:not([data-dsh-glass-float]) html[data-ds-theme-source="light"] [data-shortcut-modal="settings"][data-sidebar-collapsed]:has(> [class*="options"]) > [class*="header"] {
5048
+ background: transparent !important;
5049
+ border: none !important;
5050
+ border-bottom: none !important;
5051
+ }
5052
+
4850
5053
  html[data-dsh-glass-float] [data-shortcut-modal="settings"][data-sidebar-collapsed]:has(> [class*="options"]) > [class*="header"] {
4851
5054
  grid-column: 2 !important;
4852
5055
  grid-row: 1 / -1 !important;
4853
5056
  position: absolute !important;
4854
5057
  top: 8px !important;
4855
5058
  left: 0 !important;
4856
- right: 0 !important;
5059
+ right: 12px !important;
4857
5060
  height: 52px !important;
4858
5061
  min-height: 52px !important;
4859
5062
  padding: 0 20px !important;
4860
- border: 1px solid var(--dsh-glass-rim-soft, rgba(255, 255, 255, 0.08)) !important;
4861
- border-bottom: 1px solid var(--dsw-alias-border-l1, rgba(255, 255, 255, 0.08)) !important;
4862
- border-radius: 16px 16px 0 0 !important;
4863
- background: var(--dsw-alias-bg-layer-1) !important;
5063
+ border: none !important;
5064
+ border-radius: 0 !important;
5065
+ background: transparent !important;
4864
5066
  z-index: 10 !important;
5067
+ pointer-events: none !important;
5068
+ }
5069
+
5070
+ html[data-dsh-glass-float] [data-shortcut-modal="settings"][data-sidebar-collapsed]:has(> [class*="options"]) > [class*="header"] > * {
5071
+ pointer-events: auto !important;
4865
5072
  }
4866
5073
 
4867
- [data-shortcut-modal="settings"][data-sidebar-collapsed]:not(:has(> [class*="options"])) > div:not(nav),
4868
5074
  html[data-dsh-glass-float] [data-shortcut-modal="settings"][data-sidebar-collapsed]:not(:has(> [class*="options"])) > div:not(nav) {
4869
5075
  margin: 8px 12px 12px 0 !important;
4870
5076
  border-radius: 16px !important;
@@ -4924,8 +5130,18 @@ html[data-dsh-glass-float] [data-shortcut-modal="settings"][data-sidebar-collaps
4924
5130
  box-sizing: border-box !important;
4925
5131
  }
4926
5132
 
4927
- /* 4 块 Grid 布局映射:完美对齐首页悬浮双岛体系(左 56px 悬浮导轨,间距 12px,右侧满宽卡片) */
4928
- [data-shortcut-modal="settings"]:has(> [class*="options"]),
5133
+ /* 4 块 Grid 布局映射:普通模式紧贴平铺,仅在云母模式下启用悬浮双岛与外层边距 */
5134
+ html:not([data-dsh-glass-float]) [data-shortcut-modal="settings"]:has(> [class*="options"]) {
5135
+ display: grid !important;
5136
+ grid-template-columns: 56px minmax(0, 1fr) !important;
5137
+ grid-template-rows: auto minmax(0, 1fr) !important;
5138
+ position: fixed !important;
5139
+ inset: 0 !important;
5140
+ gap: 0 !important;
5141
+ padding: 0 !important;
5142
+ background: var(--dsw-alias-bg-base, #151517) !important;
5143
+ }
5144
+
4929
5145
  html[data-dsh-glass-float] [data-shortcut-modal="settings"]:has(> [class*="options"]),
4930
5146
  html[data-dsh-glass] [data-shortcut-modal="settings"]:has(> [class*="options"]) {
4931
5147
  display: grid !important;
@@ -4937,8 +5153,29 @@ html[data-dsh-glass-float] [data-shortcut-modal="settings"][data-sidebar-collaps
4937
5153
  padding: 8px 12px 12px 12px !important;
4938
5154
  }
4939
5155
 
4940
- /* 左侧顶部区:收缩为 56px 居中圆角磨砂卡片,完整对齐首页云母卡片 */
4941
- [data-shortcut-modal="settings"]:has(> [class*="options"]) > [class*="navTitle"],
5156
+ /* 左侧顶部区:普通模式下平铺实色无圆角,云母模式下为圆角磨砂卡片 */
5157
+ html:not([data-dsh-glass-float]) [data-shortcut-modal="settings"]:has(> [class*="options"]) > [class*="navTitle"] {
5158
+ grid-column: 1 !important;
5159
+ grid-row: 1 !important;
5160
+ box-sizing: border-box !important;
5161
+ width: 56px !important;
5162
+ min-width: 56px !important;
5163
+ max-width: 56px !important;
5164
+ padding: 14px 0 10px 0 !important;
5165
+ margin: 0 !important;
5166
+ align-items: center !important;
5167
+ justify-content: center !important;
5168
+ border-radius: 0 !important;
5169
+ border: none !important;
5170
+ border-right: 1px solid var(--dsw-alias-border-l1, rgba(255, 255, 255, 0.08)) !important;
5171
+ border-bottom: none !important;
5172
+ background: var(--dsw-specific-sidebar-fill, var(--dsw-alias-bg-layer-1, #18181b)) !important;
5173
+ backdrop-filter: none !important;
5174
+ -webkit-backdrop-filter: none !important;
5175
+ box-shadow: none !important;
5176
+ flex: none !important;
5177
+ }
5178
+
4942
5179
  html[data-dsh-glass-float] [data-shortcut-modal="settings"]:has(> [class*="options"]) > [class*="navTitle"] {
4943
5180
  grid-column: 1 !important;
4944
5181
  grid-row: 1 !important;
@@ -5034,9 +5271,37 @@ html[data-dsh-glass-float] [data-shortcut-modal="settings"][data-sidebar-collaps
5034
5271
  display: none !important;
5035
5272
  }
5036
5273
 
5037
- /* 左侧导航栏:整列死锁为 56px 导轨,完整对齐首页云母磨砂圆角与下投影 */
5038
- [data-shortcut-modal="settings"] > nav,
5039
- [data-shortcut-modal="settings"]:has(> [class*="options"]) > nav,
5274
+ /* 左侧导航栏:普通模式下平铺实色无圆角无投影,云母模式下完整对齐首页云母磨砂圆角与下投影 */
5275
+ html:not([data-dsh-glass-float]) [data-shortcut-modal="settings"] > nav,
5276
+ html:not([data-dsh-glass-float]) [data-shortcut-modal="settings"]:has(> [class*="options"]) > nav {
5277
+ grid-column: 1 !important;
5278
+ grid-row: 2 !important;
5279
+ box-sizing: border-box !important;
5280
+ width: 56px !important;
5281
+ min-width: 56px !important;
5282
+ max-width: 56px !important;
5283
+ height: 100% !important;
5284
+ max-height: 100% !important;
5285
+ margin: 0 !important;
5286
+ padding: 0 0 16px !important;
5287
+ flex: none !important;
5288
+ border: none !important;
5289
+ border-right: 1px solid var(--dsw-alias-border-l1, rgba(255, 255, 255, 0.08)) !important;
5290
+ border-radius: 0 !important;
5291
+ box-shadow: none !important;
5292
+ background: var(--dsw-specific-sidebar-fill, var(--dsw-alias-bg-layer-1, #18181b)) !important;
5293
+ backdrop-filter: none !important;
5294
+ -webkit-backdrop-filter: none !important;
5295
+ overflow-y: auto !important;
5296
+ overflow-x: hidden !important;
5297
+ scrollbar-width: none !important;
5298
+ -ms-overflow-style: none !important;
5299
+ display: flex !important;
5300
+ flex-direction: column !important;
5301
+ align-items: center !important;
5302
+ }
5303
+
5304
+ html[data-dsh-glass-float] [data-shortcut-modal="settings"] > nav,
5040
5305
  html[data-dsh-glass-float] [data-shortcut-modal="settings"]:has(> [class*="options"]) > nav,
5041
5306
  html[data-dsh-glass-float] [data-shortcut-modal="settings"]:not(:has(> [class*="options"])) > nav {
5042
5307
  grid-column: 1 !important;
@@ -5109,19 +5374,79 @@ html[data-dsh-glass-float] [data-shortcut-modal="settings"][data-sidebar-collaps
5109
5374
  position: absolute !important;
5110
5375
  top: 8px !important;
5111
5376
  left: 0 !important;
5112
- right: 0 !important;
5377
+ right: 12px !important;
5113
5378
  height: 52px !important;
5114
5379
  min-height: 52px !important;
5115
5380
  padding: 0 20px !important;
5116
- border: 1px solid var(--dsh-glass-rim-soft, rgba(255, 255, 255, 0.08)) !important;
5117
- border-bottom: 1px solid var(--dsw-alias-border-l1, rgba(255, 255, 255, 0.08)) !important;
5118
- border-radius: 16px 16px 0 0 !important;
5119
- background: var(--dsw-alias-bg-layer-1) !important;
5381
+ border: none !important;
5382
+ border-radius: 0 !important;
5383
+ background: transparent !important;
5120
5384
  z-index: 10 !important;
5385
+ pointer-events: none !important;
5386
+ }
5387
+
5388
+ html[data-dsh-glass-float] [data-shortcut-modal="settings"][data-sidebar-collapsed]:has(> [class*="options"]) > [class*="header"] > * {
5389
+ pointer-events: auto !important;
5390
+ }
5391
+
5392
+ html:not([data-dsh-glass-float]) [data-shortcut-modal="settings"]:not(:has(> [class*="options"])) > div:not(nav) {
5393
+ margin: 0 !important;
5394
+ border-radius: 0 !important;
5395
+ border: none !important;
5396
+ box-shadow: none !important;
5397
+ background: var(--dsw-alias-bg-base, #151517) !important;
5398
+ height: 100% !important;
5399
+ max-height: 100% !important;
5400
+ overflow: hidden !important;
5401
+ display: flex !important;
5402
+ flex-direction: column !important;
5403
+ }
5404
+
5405
+ html:not([data-dsh-glass-float]) [data-shortcut-modal="settings"]:not(:has(> [class*="options"])) > div:not(nav) > :first-child {
5406
+ background: transparent !important;
5407
+ border: none !important;
5408
+ border-bottom: none !important;
5409
+ flex: none !important;
5410
+ }
5411
+
5412
+ /* 右侧设置内容区:普通模式平铺紧贴,云母模式下复刻首页右侧 16px 圆角大卡片独立悬浮岛 */
5413
+ html:not([data-dsh-glass-float]) [data-shortcut-modal="settings"]:not(:has(> [class*="options"])) > div:not(nav) > :nth-child(2) {
5414
+ margin: 0 !important;
5415
+ border-radius: 0 !important;
5416
+ border: none !important;
5417
+ box-shadow: none !important;
5418
+ background: transparent !important;
5419
+ overflow-y: auto !important;
5420
+ flex: 1 1 auto !important;
5421
+ min-height: 0 !important;
5422
+ padding-top: 28px !important;
5423
+ padding-bottom: 40px !important;
5424
+ padding-inline: 20px !important;
5425
+ box-sizing: border-box !important;
5426
+ }
5427
+
5428
+ html:not([data-dsh-glass-float]) [data-shortcut-modal="settings"]:has(> [class*="options"]) > [class*="options"] {
5429
+ margin: 0 !important;
5430
+ border-radius: 0 !important;
5431
+ border: none !important;
5432
+ box-shadow: none !important;
5433
+ background: var(--dsw-alias-bg-base, #151517) !important;
5434
+ overflow-y: auto !important;
5435
+ height: 100% !important;
5436
+ max-height: 100% !important;
5437
+ padding-top: calc(56px + 28px) !important;
5438
+ padding-bottom: 40px !important;
5439
+ padding-inline: 20px !important;
5440
+ box-sizing: border-box !important;
5441
+ }
5442
+
5443
+ html:not([data-dsh-glass-float]) body:not([data-ds-dark-theme]) [data-shortcut-modal="settings"]:not(:has(> [class*="options"])) > div:not(nav),
5444
+ html:not([data-dsh-glass-float]) html[data-ds-theme-source="light"] [data-shortcut-modal="settings"]:not(:has(> [class*="options"])) > div:not(nav),
5445
+ html:not([data-dsh-glass-float]) body:not([data-ds-dark-theme]) [data-shortcut-modal="settings"]:has(> [class*="options"]) > [class*="options"],
5446
+ html:not([data-dsh-glass-float]) html[data-ds-theme-source="light"] [data-shortcut-modal="settings"]:has(> [class*="options"]) > [class*="options"] {
5447
+ background: var(--dsw-alias-bg-base, #ffffff) !important;
5121
5448
  }
5122
5449
 
5123
- /* 右侧设置内容区:完整复刻首页右侧 16px 圆角大卡片独立悬浮岛 */
5124
- [data-shortcut-modal="settings"]:not(:has(> [class*="options"])) > div:not(nav),
5125
5450
  html[data-dsh-glass-float] [data-shortcut-modal="settings"]:not(:has(> [class*="options"])) > div:not(nav) {
5126
5451
  margin: 8px 12px 12px 0 !important;
5127
5452
  border-radius: 16px !important;
@@ -8292,7 +8617,18 @@ body[data-dcu-drag-blocked='true'] [class*="dropAfter"]::after{display:none !imp
8292
8617
  let lastAlignKey = "";
8293
8618
  /** 把标题按分区顺序放到各自第一个分组块前面;空分区贴着下一个分区显示。 */
8294
8619
  function placeHeaders(blocks, layoutState = state) {
8295
- if (blocks.length === 0) return;
8620
+ if (blocks.length === 0) {
8621
+ const stalePinned = headers.get(PINNED_SECTION_ID);
8622
+ if (stalePinned !== void 0) {
8623
+ stalePinned.remove();
8624
+ headers.delete(PINNED_SECTION_ID);
8625
+ if (collapsed["pinned"] === true) {
8626
+ delete collapsed[PINNED_SECTION_ID];
8627
+ persistCollapsed();
8628
+ }
8629
+ }
8630
+ return;
8631
+ }
8296
8632
  const target = blocks[0].block.parentElement;
8297
8633
  if (target === null) return;
8298
8634
  const ungrouped = Array.from(list?.querySelectorAll("[data-row-key=\"workspace:\"]") ?? []).map((row) => row instanceof HTMLElement ? blockOf(row, list) : null).find((block) => block !== null);
@@ -8303,6 +8639,18 @@ body[data-dcu-drag-blocked='true'] [class*="dropAfter"]::after{display:none !imp
8303
8639
  const first = section.ids.map((id) => byId.get(id)).find((block) => block !== void 0);
8304
8640
  if (first !== void 0) reference = first;
8305
8641
  else if (section.id === "default" && ungrouped !== void 0) reference = ungrouped;
8642
+ if (section.id === "pinned" && section.ids.length === 0) {
8643
+ const stale = headers.get(PINNED_SECTION_ID);
8644
+ if (stale !== void 0) {
8645
+ stale.remove();
8646
+ headers.delete(PINNED_SECTION_ID);
8647
+ if (collapsed["pinned"] === true) {
8648
+ delete collapsed[PINNED_SECTION_ID];
8649
+ persistCollapsed();
8650
+ }
8651
+ }
8652
+ continue;
8653
+ }
8306
8654
  const header = ensureHeader(section.id, section.name);
8307
8655
  if (header.parentElement !== target || header.nextElementSibling !== reference) target.insertBefore(header, reference);
8308
8656
  reference = header;
@@ -8328,7 +8676,7 @@ body[data-dcu-drag-blocked='true'] [class*="dropAfter"]::after{display:none !imp
8328
8676
  }
8329
8677
  const alignKey = `${headers.size}:${list?.clientWidth ?? 0}`;
8330
8678
  const label = document.querySelector("[class*=\"sectionLabel\"]");
8331
- const firstHeader = headers.get(layoutState.sections[0]?.id ?? "pinned");
8679
+ const firstHeader = layoutState.sections.map((section) => headers.get(section.id)).find((header) => header !== void 0);
8332
8680
  if (label !== null && firstHeader !== void 0 && alignKey !== lastAlignKey) {
8333
8681
  lastAlignKey = alignKey;
8334
8682
  const lead = Math.max(0, Math.round(label.getBoundingClientRect().left - firstHeader.getBoundingClientRect().left));
@@ -51,7 +51,7 @@ const zh = {
51
51
  "about.feedback": "问题反馈",
52
52
  "about.checkUpdate": "检查更新",
53
53
  "about.checking": "正在检查更新…",
54
- "about.description": "为 DSH 提供输入框增强、全屏设置工作台美化与生态插件管理。",
54
+ "about.description": "输入框增强、全屏设置工作台美化与生态插件管理。",
55
55
  "about.features": "包含子插件与功能",
56
56
  "about.feature.composer.name": "输入框增强 (Composer)",
57
57
  "about.feature.composer": "终端风格输入历史(↑/↓)快捷召回、自适应宽度调节与会话建议卡片",
@@ -220,7 +220,7 @@ const en = {
220
220
  "about.feedback": "Issues",
221
221
  "about.checkUpdate": "Check for updates",
222
222
  "about.checking": "Checking…",
223
- "about.description": "Adds input enhancements, fullscreen settings workbench skin, and ecosystem plugin management to DSH.",
223
+ "about.description": "Input enhancement, fullscreen settings workbench skin, and ecosystem plugin management.",
224
224
  "about.features": "Built-in Sub-plugins & Capabilities",
225
225
  "about.feature.composer.name": "Composer Enhancements",
226
226
  "about.feature.composer": "Terminal-style input history (↑/↓), adaptive width resizing, and starter suggestions",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@michengai/dsh-codex-ui",
3
- "version": "2.0.10",
3
+ "version": "2.0.11",
4
4
  "description": "DSH Codex UI — 为 DeepSeek Harness 提供极速历史召回、全屏设置皮肤、原生物理毛玻璃换肤与模块化侧栏 · Input enhancement, settings skin, native glass theme, and modular sidebar for DSH",
5
5
  "license": "Apache-2.0",
6
6
  "publishConfig": {