dsh-multipane 1.0.45 → 1.0.46
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 +10 -7
- 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.46 (2026-11-11)
|
|
165
|
+
|
|
166
|
+
- **Fixed the turn navigator flickering in and out, and never coming back after a resize**: 1.0.45 hid the rail below 480px with `display:none`, but the host's rail measures its own height for a virtual scroller - taking it out of layout recorded a height of 0 with nothing to recompute it when the pane grew back, so the rail stayed gone. The rail now keeps its layout at every width and is hidden only by `visibility` below 240px, which leaves the measurement valid and restores instantly.
|
|
167
|
+
|
|
164
168
|
### 1.0.45 (2026-11-11)
|
|
165
169
|
|
|
166
170
|
- **Brought the host's turn navigator back inside panes** (the column of short marks on the right of a conversation, with the "turn N" hover preview). The plugin never removed it: the host hides the rail whenever a conversation is narrower than 900px (`@container (width<=900px)`), and a two-pane layout puts each pane at roughly 650px, so the rule fires as soon as you split. The plugin now re-enables the rail inside panes only (still hidden below 480px), in CSS alone - no host DOM is touched and no React state is involved.
|
package/README.md
CHANGED
|
@@ -160,6 +160,10 @@ node scripts/check-names.cjs # 包名 / 版本 / 冷却豁免三处是否一
|
|
|
160
160
|
|
|
161
161
|
## 更新记录
|
|
162
162
|
|
|
163
|
+
### 1.0.46(2026-11-11)
|
|
164
|
+
|
|
165
|
+
- **修「右侧轮次导航条忽隐忽现、拉窄后再拖宽也回不来」**:1.0.45 用 `display:none` 在 480px 以下收起这条,但宿主的这条导航内部是虚拟滚动,`display` 一关就把可用高度量成 0 并留在状态里,宽度回来也不会重算 —— 成了单向棘轮。现在显示恒为 `block`,只有窄到 240px 以下才隐藏**可见性**(`visibility:hidden`),布局与测量始终保留,恢复宽度立刻可见。
|
|
166
|
+
|
|
163
167
|
### 1.0.45(2026-11-11)
|
|
164
168
|
|
|
165
169
|
- **恢复窗格里的「轮次导航条」**(会话右侧那列短横线,悬停弹出「第 N 轮」预览卡)。它不是被插件删掉的:宿主有一条 `@container (width<=900px)` 的响应式规则,会话宽度不到 900px 就整条隐藏;分成两栏后每栏大约 650px,规则一命中就没了。现在插件只在窗格里把它放开(窗格窄于 480px 时仍收起),仍是不碰宿主 DOM、不动 React,纯 CSS 覆盖。
|
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.46";
|
|
21
21
|
const NPM_LATEST_URL = "https://registry.npmjs.org/dsh-multipane/latest";
|
|
22
22
|
|
|
23
23
|
|
|
@@ -2301,13 +2301,16 @@ const TAB_LABEL_CHROME_DOT_PX = 46;
|
|
|
2301
2301
|
在窄栏里尤其明显;这里把它的预留位清零。 */
|
|
2302
2302
|
.dsv-pane .dsv-body [data-chat-turn-spacer]{height:0!important}
|
|
2303
2303
|
|
|
2304
|
-
/* ==== 1.0.
|
|
2305
|
-
宿主在会话宽度 ≤900px
|
|
2306
|
-
|
|
2307
|
-
|
|
2308
|
-
|
|
2304
|
+
/* ==== 1.0.46:窗格里的「轮次导航条」不再忽隐忽现(会话右侧那列短横线)====
|
|
2305
|
+
宿主在会话宽度 ≤900px 时整条 display:none,分栏后每栏必然更窄,于是开着插件
|
|
2306
|
+
它就没了。1.0.45 把它放开,却又用 display:none 在窄窗格里收回:来回切 display
|
|
2307
|
+
会让宿主的虚拟滚动把可用高度量成 0 并留在状态里,宽度回来也没人重算 ——
|
|
2308
|
+
拉窄消失后拖回原宽度也回不来(单向棘轮)。现在显示恒为 block(布局与测量
|
|
2309
|
+
一直在),只有窄到放不下时才隐藏**可见性**,恢复宽度立刻可见。
|
|
2310
|
+
选择器用结构条件 nav:has(button[data-index]),不写宿主的哈希类名
|
|
2311
|
+
(如 SNx2jG_*),宿主升级换了哈希也不会失效。 */
|
|
2309
2312
|
.dsv-pane .dsv-body nav:has(button[data-index]){display:block!important}
|
|
2310
|
-
@container (width<=
|
|
2313
|
+
@container (width<=240px){.dsv-pane .dsv-body nav:has(button[data-index]){visibility:hidden;pointer-events:none}}
|
|
2311
2314
|
/* 窗口最大化时外框有约 7px 溢出到屏幕外,标题栏最顶上那一截落在屏幕外;
|
|
2312
2315
|
标签原来只有 ~26px 高、上下留 9px,光标贴屏幕最顶时落在标签上方的空白里,点不到标签。
|
|
2313
2316
|
把标签命中区拉到标题栏整高(内容仍垂直居中)。只改标签自身横向范围,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-multipane",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.46",
|
|
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": {
|