dsh-multipane 1.0.41 → 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 +4 -0
- package/README.md +4 -0
- package/lib/client.js +24 -19
- package/package.json +1 -1
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.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
|
+
|
|
164
168
|
### 1.0.41 (2026-11-11)
|
|
165
169
|
|
|
166
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
|
package/README.md
CHANGED
|
@@ -160,6 +160,10 @@ 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
|
+
|
|
163
167
|
### 1.0.41(2026-11-11)
|
|
164
168
|
|
|
165
169
|
- **修「会话头菜单点开只剩『更多操作』一项,点了没反应」**:插件为了不让右上一排出现两个「更多」,一直把宿主自己的「更多操作」按钮藏进本插件的「⋯」里,点菜单项时再对那颗被藏起来的按钮转发一次点击。宿主的新版菜单要按按钮的实际位置展开,按钮被藏起来后位置是 0,菜单就打不开了。现在宿主那颗「更多操作」保持原样显示、走它自己的菜单,插件的「⋯」只装真正被挤掉的按钮
|
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.
|
|
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
|
-
|
|
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:
|
|
2002
|
+
.dsv-hostbar-right{flex:0 0 auto;min-width:0;overflow:visible}
|
|
1998
2003
|
/* 视图切换条放进 hostbar 后:占中间剩余空间,一行放不下时整块换到第二行。
|
|
1999
2004
|
min-width 是「最小间隔」的保障 —— 再窄也不让它和标题/按钮贴脸。 */
|
|
2000
2005
|
/* 视图切换条在宿主会话头这一行里:
|
|
@@ -5681,25 +5686,25 @@ const TAB_LABEL_CHROME_DOT_PX = 46;
|
|
|
5681
5686
|
if (rect.width < 1) continue;
|
|
5682
5687
|
const button = entry.querySelector("button") ?? entry;
|
|
5683
5688
|
const label = (button.getAttribute("aria-label") || button.title || "").trim();
|
|
5684
|
-
/* 2026-11-08 曾按「右边那一组最多有一个菜单」把宿主「更多操作」收进本插件的
|
|
5685
|
-
⋯;2026-11-11 证实那样会让宿主菜单点不开(见下),于是改回「各用各的
|
|
5689
|
+
/* 2026-11-08 曾按「右边那一组最多有一个菜单」把宿主「更多操作」收进本插件的
|
|
5690
|
+
⋯;2026-11-11 证实那样会让宿主菜单点不开(见下),于是改回「各用各的
|
|
5686
5691
|
菜单」,只在真的挤不下时才折叠别的按钮。 */
|
|
5687
5692
|
const isHostMore = isHostMoreLabel(label);
|
|
5688
5693
|
const need = rect.width + 6;
|
|
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;
|
|
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) {
|
|
5704
|
+
entry.style.display = "none";
|
|
5705
|
+
if (label !== "") clipped.push({ label, clipped: true, button });
|
|
5706
|
+
} else {
|
|
5707
|
+
used += need;
|
|
5703
5708
|
}
|
|
5704
5709
|
}
|
|
5705
5710
|
return clipped;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-multipane",
|
|
3
|
-
"version": "1.0.
|
|
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": {
|