dsh-multipane 1.0.40 → 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,10 @@ 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
+
164
168
  ### 1.0.40 (2026-11-11)
165
169
 
166
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
package/README.md CHANGED
@@ -160,6 +160,10 @@ node scripts/check-names.cjs # 包名 / 版本 / 冷却豁免三处是否一
160
160
 
161
161
  ## 更新记录
162
162
 
163
+ ### 1.0.41(2026-11-11)
164
+
165
+ - **修「会话头菜单点开只剩『更多操作』一项,点了没反应」**:插件为了不让右上一排出现两个「更多」,一直把宿主自己的「更多操作」按钮藏进本插件的「⋯」里,点菜单项时再对那颗被藏起来的按钮转发一次点击。宿主的新版菜单要按按钮的实际位置展开,按钮被藏起来后位置是 0,菜单就打不开了。现在宿主那颗「更多操作」保持原样显示、走它自己的菜单,插件的「⋯」只装真正被挤掉的按钮
166
+
163
167
  ### 1.0.40(2026-11-11)
164
168
 
165
169
  - **修「视图栏第二个『上下文』点开大片空白、只有底下几行字」**:上一版把「内容贴底」的 CSS 写得太宽,连轨迹 / 上下文 / 编队这些靠撑满高度自己滚动的视图也被压成了内容高度。现在用 `:has([data-chat-flow])` 只作用在聊天视图上,其它视图恢复原样
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.40";
20
+ const PLUGIN_VERSION = "1.0.41";
21
21
  const NPM_LATEST_URL = "https://registry.npmjs.org/dsh-multipane/latest";
22
22
 
23
23
 
@@ -5665,10 +5665,7 @@ const TAB_LABEL_CHROME_DOT_PX = 46;
5665
5665
  if (r.width < 1) continue;
5666
5666
  const button = entry.querySelector("button") ?? entry;
5667
5667
  const label = (button.getAttribute("aria-label") || button.title || "").trim();
5668
- /* 宿主的「更多操作」永远被收进我们这颗「⋯」(否则界面上会有两个"更多"),
5669
- 所以它不计入「一行需要多宽」—— 否则每栏都白算一颗按钮的宽度,
5670
- 明明放得下也会被判成两行。 */
5671
- if (isHostMoreLabel(label)) continue;
5668
+ /* 宿主的「更多操作」保持原生显示(见下面 collect 的说明),所以它照常计入「一行需要多宽」—— 少算它会让明明放得下的一行被判成两行。 */
5672
5669
  fullNeed += r.width + 6;
5673
5670
  }
5674
5671
  if (fullNeed > 0 && typeof needRef.current === "function") needRef.current(Math.round(fullNeed));
@@ -5684,16 +5681,25 @@ const TAB_LABEL_CHROME_DOT_PX = 46;
5684
5681
  if (rect.width < 1) continue;
5685
5682
  const button = entry.querySelector("button") ?? entry;
5686
5683
  const label = (button.getAttribute("aria-label") || button.title || "").trim();
5687
- /* 用户口径:「右边那一组最多有一个菜单」—— 宿主自己的「更多操作」
5688
- 必须永远收进我们这个菜单,否则界面上会同时出现两个"更多"。
5689
- (实测就是两个「更多操作」并排,用户一眼就看出来了。) */
5684
+ /* 2026-11-08 曾按「右边那一组最多有一个菜单」把宿主「更多操作」收进本插件的
5685
+ ⋯;2026-11-11 证实那样会让宿主菜单点不开(见下),于是改回「各用各的
5686
+ 菜单」,只在真的挤不下时才折叠别的按钮。 */
5690
5687
  const isHostMore = isHostMoreLabel(label);
5691
5688
  const need = rect.width + 6;
5692
- if (isHostMore === true || used + need > avail + 1) {
5693
- entry.style.display = "none";
5694
- if (label !== "") clipped.push({ label, clipped: true, button });
5695
- } else {
5696
- 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;
5697
5703
  }
5698
5704
  }
5699
5705
  return clipped;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-multipane",
3
- "version": "1.0.40",
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": {