dsh-multipane 1.0.40 → 1.0.42

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.42 (2026-11-11)
165
+
166
+ - **Fixed the session-header "More actions" menu not opening / showing only one item**: the host renders this menu as an **inline absolutely-positioned** popover inside the button's element, and the pane header's two `overflow:hidden` layers clipped it away, so clicking did nothing. Both layers are now `overflow:visible` and the header bar's `z-index` is raised to 30 so the popover can overlay the conversation; when buttons overflow they are still folded into the plugin's own "…", so panes don't bleed.
167
+
168
+ ### 1.0.41 (2026-11-11)
169
+
170
+ - **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
171
+
164
172
  ### 1.0.40 (2026-11-11)
165
173
 
166
174
  - **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,14 @@ node scripts/check-names.cjs # 包名 / 版本 / 冷却豁免三处是否一
160
160
 
161
161
  ## 更新记录
162
162
 
163
+ ### 1.0.42(2026-11-11)
164
+
165
+ - **修「会话头右侧的『更多操作』菜单点不开 / 只剩一项」**:宿主的这个菜单是**内联绝对定位**弹层(挂在按钮所在元素里),被栏头部两层 `overflow:hidden` 整块裁掉,所以点上去像没反应。现在放开这两层的裁切(`overflow:visible`)并把栏头的 `z-index` 抬到 30,弹层能正常盖在会话内容上;按钮过多时仍由插件自己的「…」折叠兜底,不会串到别的栏。
166
+
167
+ ### 1.0.41(2026-11-11)
168
+
169
+ - **修「会话头菜单点开只剩『更多操作』一项,点了没反应」**:插件为了不让右上一排出现两个「更多」,一直把宿主自己的「更多操作」按钮藏进本插件的「⋯」里,点菜单项时再对那颗被藏起来的按钮转发一次点击。宿主的新版菜单要按按钮的实际位置展开,按钮被藏起来后位置是 0,菜单就打不开了。现在宿主那颗「更多操作」保持原样显示、走它自己的菜单,插件的「⋯」只装真正被挤掉的按钮
170
+
163
171
  ### 1.0.40(2026-11-11)
164
172
 
165
173
  - **修「视图栏第二个『上下文』点开大片空白、只有底下几行字」**:上一版把「内容贴底」的 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.42";
21
21
  const NPM_LATEST_URL = "https://registry.npmjs.org/dsh-multipane/latest";
22
22
 
23
23
 
@@ -1966,7 +1966,12 @@ const TAB_LABEL_CHROME_DOT_PX = 46;
1966
1966
  .dsv-divider[data-preview="1"]::after{content:"松手:插到这一栏的位置";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);white-space:nowrap;padding:4px 8px;border-radius:6px;font-size:11px;font-weight:600;background:var(--dsh-surface-raised-color,rgba(20,20,24,.9));color:var(--dsh-text-strong-color,#e8eefc);box-shadow:0 2px 10px rgba(0,0,0,.4);pointer-events:none;z-index:7}
1967
1967
  /* 视图切换条:宽窄由容器决定,窄了就靠 JS 收进「…」,这里只管排版。 */
1968
1968
  .dsv-slotitem{display:inline-flex;align-items:center;min-width:0;flex:0 0 auto}
1969
- .dsv-hostbar{flex:0 0 auto;display:flex;align-items:center;gap:8px;min-width:0;min-height:32px;padding:0 10px;position:relative;z-index:3;overflow:hidden}
1969
+ /* overflow 必须是 visible:宿主的「更多操作」菜单(@deepseek-ai/dsh-session-log-export)
1970
+ 用的是**内联**弹层(Menu 未传 portal),绝对定位挂在按钮下方;原来的
1971
+ overflow:hidden 会把弹层整块裁掉,表现为「点了没反应 / 只剩一个更多操作」。
1972
+ 按钮本身已经由 CollapsedActions 收进「…」保证不溢出,所以放开裁切不会串栏。
1973
+ z-index 抬到 30:宿主 composerSeat 在 active 阶段是 z-index:9,不抬会被它盖住。 */
1974
+ .dsv-hostbar{flex:0 0 auto;display:flex;align-items:center;gap:8px;min-width:0;min-height:32px;padding:0 10px;position:relative;z-index:30;overflow:visible}
1970
1975
  /* 不再强制占位:宿主 lineage 槽当前渲不出内容,写死 64px 就变成一片空白。 */
1971
1976
  .dsv-hostbar-left{display:flex;align-items:center;gap:6px;min-width:0;overflow:hidden;flex:0 1 auto}
1972
1977
  .dsv-hostbar-right{display:flex;align-items:center;gap:6px;margin-left:auto;flex:0 0 auto}
@@ -1994,7 +1999,7 @@ const TAB_LABEL_CHROME_DOT_PX = 46;
1994
1999
  /* 按钮组限宽:窄栏时不再无限往外长,超出的按钮裁掉,
1995
2000
  同时被收进「更多」菜单(见 CollapsedActions)—— 功能不丢。
1996
2001
  用户口径 2026-11-08:选方案 B「窄栏时次要按钮收进更多菜单」。 */
1997
- .dsv-hostbar-right{flex:0 0 auto;min-width:0;overflow:hidden}
2002
+ .dsv-hostbar-right{flex:0 0 auto;min-width:0;overflow:visible}
1998
2003
  /* 视图切换条放进 hostbar 后:占中间剩余空间,一行放不下时整块换到第二行。
1999
2004
  min-width 是「最小间隔」的保障 —— 再窄也不让它和标题/按钮贴脸。 */
2000
2005
  /* 视图切换条在宿主会话头这一行里:
@@ -5665,10 +5670,7 @@ const TAB_LABEL_CHROME_DOT_PX = 46;
5665
5670
  if (r.width < 1) continue;
5666
5671
  const button = entry.querySelector("button") ?? entry;
5667
5672
  const label = (button.getAttribute("aria-label") || button.title || "").trim();
5668
- /* 宿主的「更多操作」永远被收进我们这颗「⋯」(否则界面上会有两个"更多"),
5669
- 所以它不计入「一行需要多宽」—— 否则每栏都白算一颗按钮的宽度,
5670
- 明明放得下也会被判成两行。 */
5671
- if (isHostMoreLabel(label)) continue;
5673
+ /* 宿主的「更多操作」保持原生显示(见下面 collect 的说明),所以它照常计入「一行需要多宽」—— 少算它会让明明放得下的一行被判成两行。 */
5672
5674
  fullNeed += r.width + 6;
5673
5675
  }
5674
5676
  if (fullNeed > 0 && typeof needRef.current === "function") needRef.current(Math.round(fullNeed));
@@ -5684,12 +5686,21 @@ const TAB_LABEL_CHROME_DOT_PX = 46;
5684
5686
  if (rect.width < 1) continue;
5685
5687
  const button = entry.querySelector("button") ?? entry;
5686
5688
  const label = (button.getAttribute("aria-label") || button.title || "").trim();
5687
- /* 用户口径:「右边那一组最多有一个菜单」—— 宿主自己的「更多操作」
5688
- 必须永远收进我们这个菜单,否则界面上会同时出现两个"更多"。
5689
- (实测就是两个「更多操作」并排,用户一眼就看出来了。) */
5689
+ /* 2026-11-08 曾按「右边那一组最多有一个菜单」把宿主「更多操作」收进本插件的
5690
+ ⋯;2026-11-11 证实那样会让宿主菜单点不开(见下),于是改回「各用各的
5691
+ 菜单」,只在真的挤不下时才折叠别的按钮。 */
5690
5692
  const isHostMore = isHostMoreLabel(label);
5691
5693
  const need = rect.width + 6;
5692
- if (isHostMore === true || used + need > avail + 1) {
5694
+ /* 宿主的「更多操作」**不再**收进我们这颗「⋯」:它自己的菜单要按锚点按钮的
5695
+ rect 定位,按钮一旦被 display:none 藏起来 rect 就是 0,点我们菜单里
5696
+ 那一项转发 click() 过去,宿主的菜单根本打不开 —— 用户 2026-11-11
5697
+ 实测「⋯ 里只剩『更多操作』一项,点了没反应」。现在它常驻可见、走它
5698
+ 自己的原生菜单;我们的 ⋯ 只装真正被挤掉的按钮。 */
5699
+ if (isHostMore === true) {
5700
+ used += need;
5701
+ continue;
5702
+ }
5703
+ if (used + need > avail + 1) {
5693
5704
  entry.style.display = "none";
5694
5705
  if (label !== "") clipped.push({ label, clipped: true, button });
5695
5706
  } else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-multipane",
3
- "version": "1.0.40",
3
+ "version": "1.0.42",
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": {