dsh-multipane 1.0.39 → 1.0.41

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/README.en.md CHANGED
@@ -161,6 +161,14 @@ node scripts/check-names.cjs # package name / version / release-age allowanc
161
161
 
162
162
  ## Changelog
163
163
 
164
+ ### 1.0.41 (2026-11-11)
165
+
166
+ - **Fixed the session-header menu showing only "More actions" with a dead click**: to avoid two "more" menus in the top-right row, the plugin used to hide the host's own "More actions" button inside its own "⋯" menu and forward a click to the hidden button. The host's newer menu positions itself from the anchor button's rect, which is zero while hidden, so it never opened. The host's button now stays visible and uses its own menu; the plugin's "⋯" only holds buttons that are genuinely clipped
167
+
168
+ ### 1.0.40 (2026-11-11)
169
+
170
+ - **Fixed the second "Context" view showing a huge blank with a few lines at the bottom**: the previous version applied the "dock content to the bottom" rule too broadly, so views that need to fill the height and scroll on their own (trajectory / context / team) were collapsed to content height too. It is now scoped to the chat view with `:has([data-chat-flow])`, and the other views are back to normal
171
+
164
172
  ### 1.0.39 (2026-11-11)
165
173
 
166
174
  - **Fixed the pulse peak looking brighter than the base even when both are set to the same value**: in the real list the row background and the pulse layer stack (15% base plus 15% pulse composites to 27.75%), while the settings preview uses a single layer — so the same number always looked brighter in the list. Pulsing rows now hand the background over to the pulse layer, making the on-screen opacity equal the configured value, matching the preview
package/README.md CHANGED
@@ -160,6 +160,14 @@ node scripts/check-names.cjs # 包名 / 版本 / 冷却豁免三处是否一
160
160
 
161
161
  ## 更新记录
162
162
 
163
+ ### 1.0.41(2026-11-11)
164
+
165
+ - **修「会话头菜单点开只剩『更多操作』一项,点了没反应」**:插件为了不让右上一排出现两个「更多」,一直把宿主自己的「更多操作」按钮藏进本插件的「⋯」里,点菜单项时再对那颗被藏起来的按钮转发一次点击。宿主的新版菜单要按按钮的实际位置展开,按钮被藏起来后位置是 0,菜单就打不开了。现在宿主那颗「更多操作」保持原样显示、走它自己的菜单,插件的「⋯」只装真正被挤掉的按钮
166
+
167
+ ### 1.0.40(2026-11-11)
168
+
169
+ - **修「视图栏第二个『上下文』点开大片空白、只有底下几行字」**:上一版把「内容贴底」的 CSS 写得太宽,连轨迹 / 上下文 / 编队这些靠撑满高度自己滚动的视图也被压成了内容高度。现在用 `:has([data-chat-flow])` 只作用在聊天视图上,其它视图恢复原样
170
+
163
171
  ### 1.0.39(2026-11-11)
164
172
 
165
173
  - **修「呼吸的最亮值和底板填一样,看着还是明显更亮」**:真实列表里行底色和呼吸层是**两层**叠在一起(15% 底板之上再叠 15%,合成 27.75%),而设置页预览是单层,所以设置里的数值在列表上永远偏亮。现在呼吸中的行把行底色让给呼吸层,屏幕上看到的透明度就等于设置里的数值,和预览一致
package/lib/client.js CHANGED
@@ -17,7 +17,7 @@ window.__ModuleLoader__.load({
17
17
  */
18
18
  const PLUGIN_LABEL = "多栏视图";
19
19
  /* 与 package.json 的 version 必须一致(发版时两处同改;check-names.cjs 会校验)。 */
20
- const PLUGIN_VERSION = "1.0.39";
20
+ const PLUGIN_VERSION = "1.0.41";
21
21
  const NPM_LATEST_URL = "https://registry.npmjs.org/dsh-multipane/latest";
22
22
 
23
23
 
@@ -2282,12 +2282,16 @@ const TAB_LABEL_CHROME_DOT_PX = 46;
2282
2282
  .dsv-pane .dsv-body .dsv-tab-slot{flex:1 1 auto;min-height:0;min-width:0;height:100%;display:flex;flex-direction:column;position:relative}
2283
2283
  .dsv-pane .dsv-body .dsv-tab-slot>*{flex:1 1 auto;min-height:0;min-width:0}
2284
2284
  .dsv-pane .dsv-body .dsv-tab-slot[data-active="0"]{display:none!important}
2285
- /* 活动阶段:让会话内容贴着输入框底部对齐(内容不足一屏时空白落到上方,而不是堆在回复下方)。
2285
+ /* 活动阶段:让**聊天视图**贴着输入框底部对齐(内容不足一屏时空白落到上方,而不是堆在回复下方)。
2286
2286
  ⚠️ 槽位 [data-slot="conversation.session"] 在宿主里是 display:contents(见 renderer 的
2287
2287
  ANCHOR_STYLE),它不参与布局,写 margin-top:auto 是空操作 —— 真正的 flex item 是它的
2288
- 子元素 .an3WzG_viewArea,auto margin 必须写在这里才生效。 */
2289
- .dsv-pane .dsv-body [data-content-phase="active"] .an3WzG_viewArea{flex:0 0 auto;margin-top:auto}
2290
- .dsv-pane .dsv-body [data-content-phase="active"] .an3WzG_composerSeat{margin-top:0}
2288
+ 子元素 .an3WzG_viewArea,auto margin 必须写在这里才生效。
2289
+ ⚠️ 必须用 :has([data-chat-flow]) 限定在聊天视图:轨迹 / 上下文 / 编队 这些视图要靠
2290
+ viewArea 撑满高度、自己滚,一旦也被 flex:0 0 auto 压成内容高度,就会只剩底下几行字、
2291
+ 上面一大片空白(2026-11-11 用户报「第二个上下文点开异常」)。data-chat-flow 是聊天流
2292
+ 容器 .column 上的宿主属性,只有聊天视图里才有。 */
2293
+ .dsv-pane .dsv-body [data-content-phase="active"] .an3WzG_viewArea:has([data-chat-flow]){flex:0 0 auto;margin-top:auto}
2294
+ .dsv-pane .dsv-body [data-content-phase="active"] .an3WzG_scrollBody:has([data-chat-flow])>.an3WzG_composerSeat{margin-top:0}
2291
2295
  /* 宿主聊天滚动管理器在「工具/明细折叠」后会在内容下方预留最多半个滚动区高度的空白,
2292
2296
  在窄栏里尤其明显;这里把它的预留位清零。 */
2293
2297
  .dsv-pane .dsv-body [data-chat-turn-spacer]{height:0!important}
@@ -5661,10 +5665,7 @@ const TAB_LABEL_CHROME_DOT_PX = 46;
5661
5665
  if (r.width < 1) continue;
5662
5666
  const button = entry.querySelector("button") ?? entry;
5663
5667
  const label = (button.getAttribute("aria-label") || button.title || "").trim();
5664
- /* 宿主的「更多操作」永远被收进我们这颗「⋯」(否则界面上会有两个"更多"),
5665
- 所以它不计入「一行需要多宽」—— 否则每栏都白算一颗按钮的宽度,
5666
- 明明放得下也会被判成两行。 */
5667
- if (isHostMoreLabel(label)) continue;
5668
+ /* 宿主的「更多操作」保持原生显示(见下面 collect 的说明),所以它照常计入「一行需要多宽」—— 少算它会让明明放得下的一行被判成两行。 */
5668
5669
  fullNeed += r.width + 6;
5669
5670
  }
5670
5671
  if (fullNeed > 0 && typeof needRef.current === "function") needRef.current(Math.round(fullNeed));
@@ -5680,16 +5681,25 @@ const TAB_LABEL_CHROME_DOT_PX = 46;
5680
5681
  if (rect.width < 1) continue;
5681
5682
  const button = entry.querySelector("button") ?? entry;
5682
5683
  const label = (button.getAttribute("aria-label") || button.title || "").trim();
5683
- /* 用户口径:「右边那一组最多有一个菜单」—— 宿主自己的「更多操作」
5684
- 必须永远收进我们这个菜单,否则界面上会同时出现两个"更多"。
5685
- (实测就是两个「更多操作」并排,用户一眼就看出来了。) */
5684
+ /* 2026-11-08 曾按「右边那一组最多有一个菜单」把宿主「更多操作」收进本插件的
5685
+ ⋯;2026-11-11 证实那样会让宿主菜单点不开(见下),于是改回「各用各的
5686
+ 菜单」,只在真的挤不下时才折叠别的按钮。 */
5686
5687
  const isHostMore = isHostMoreLabel(label);
5687
5688
  const need = rect.width + 6;
5688
- if (isHostMore === true || used + need > avail + 1) {
5689
- entry.style.display = "none";
5690
- if (label !== "") clipped.push({ label, clipped: true, button });
5691
- } else {
5692
- used += need;
5689
+ /* 宿主的「更多操作」**不再**收进我们这颗「⋯」:它自己的菜单要按锚点按钮的
5690
+ rect 定位,按钮一旦被 display:none 藏起来 rect 就是 0,点我们菜单里
5691
+ 那一项转发 click() 过去,宿主的菜单根本打不开 —— 用户 2026-11-11
5692
+ 实测「⋯ 里只剩『更多操作』一项,点了没反应」。现在它常驻可见、走它
5693
+ 自己的原生菜单;我们的 ⋯ 只装真正被挤掉的按钮。 */
5694
+ if (isHostMore === true) {
5695
+ used += need;
5696
+ continue;
5697
+ }
5698
+ if (used + need > avail + 1) {
5699
+ entry.style.display = "none";
5700
+ if (label !== "") clipped.push({ label, clipped: true, button });
5701
+ } else {
5702
+ used += need;
5693
5703
  }
5694
5704
  }
5695
5705
  return clipped;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-multipane",
3
- "version": "1.0.39",
3
+ "version": "1.0.41",
4
4
  "description": "Split the DSH main area into up to four panes, each with its own tab strip, composer and view switcher. Drag a tab to a pane edge to split. Bilingual (zh/en).",
5
5
  "displayName": "多栏视图",
6
6
  "dshhub": {