dsh-multipane 1.0.38 → 1.0.40

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,12 +161,13 @@ node scripts/check-names.cjs # package name / version / release-age allowanc
161
161
 
162
162
  ## Changelog
163
163
 
164
- ### 1.0.38 (2026-11-11)
164
+ ### 1.0.40 (2026-11-11)
165
165
 
166
- - **Fixed the big gap under the last message after a reply**: the host's slot wrapper is `display:contents` and never takes part in layout, so the earlier `margin-top:auto` on it did nothing. The auto margin now sits on the real flex item (`.an3WzG_viewArea`), and the host scroll manager's reserved room after collapsing a turn (up to half a viewport) is zeroed — short conversations dock above the composer, long ones still start at the top
167
- - **Fixed the "loading history" flash when switching tabs**: tabs were keyed by tab id, so every switch unmounted and remounted the host conversation view and re-fetched its history. Each tab now keeps a resident slot and inactive ones are hidden with `display:none` — switching only toggles visibility, so nothing remounts and no history is re-fetched
168
- - **Fixed unclickable tabs when the pointer sits at the very top of a maximized window**: a maximized frame overflows about 7px above the screen, while tabs were only ~26px tall and vertically centered in the 44px header, leaving 9px of drag area above and below. The tab hit area now fills the header height (labels stay centered); the empty header still drags the window and double-click maximizes
169
- - **Fixed the bottom stats line flickering**: the stats-row scan is now limited to the active tab, so the copy inside hidden tabs is no longer mistaken for a freshly rendered row
166
+ - **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
167
+
168
+ ### 1.0.39 (2026-11-11)
169
+
170
+ - **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
170
171
 
171
172
  ### 1.0.37 (2026-11-11)
172
173
 
package/README.md CHANGED
@@ -160,12 +160,13 @@ node scripts/check-names.cjs # 包名 / 版本 / 冷却豁免三处是否一
160
160
 
161
161
  ## 更新记录
162
162
 
163
- ### 1.0.38(2026-11-11)
163
+ ### 1.0.40(2026-11-11)
164
164
 
165
- - **修「回复完,最后一条消息下面一大块空白」**:宿主的插槽包裹元素是 `display:contents`,不参与布局,之前把 `margin-top:auto` 写在它身上等于没写。现在改挂到真正的 flex 项 `.an3WzG_viewArea` 上,并把宿主滚动管理器在明细折叠后预留的空白(最多半屏)清零 —— 内容不足一屏时贴输入框,内容超一屏时照常从顶部排
166
- - **修「切标签先闪一下『载入历史』」**:同一栏的标签原来按「标签 id」换 key,切一次就卸载重建一次宿主会话组件,宿主于是重新拉历史。现在每个标签各占一个常驻槽位,非活动的用 `display:none` 隐藏 —— 切标签只切显示,组件不卸载,历史不重拉
167
- - **修「最大化时鼠标贴屏幕最顶端点不到标签」**:最大化窗口外框向上溢出约 7px,而标签只有约 26px 高、在 44px 标题栏里居中,上下各留 9px 拖动区。现在标签命中区拉到标题栏整高(文字仍居中),标签之外的空白照旧可拖动窗口 / 双击最大化
168
- - **修「底部统计数字来回跳」**:统计行扫描收窄到当前激活标签,隐藏标签里的那一份不再被当成「宿主新建的行」反复搬运
165
+ - **修「视图栏第二个『上下文』点开大片空白、只有底下几行字」**:上一版把「内容贴底」的 CSS 写得太宽,连轨迹 / 上下文 / 编队这些靠撑满高度自己滚动的视图也被压成了内容高度。现在用 `:has([data-chat-flow])` 只作用在聊天视图上,其它视图恢复原样
166
+
167
+ ### 1.0.39(2026-11-11)
168
+
169
+ - **修「呼吸的最亮值和底板填一样,看着还是明显更亮」**:真实列表里行底色和呼吸层是**两层**叠在一起(15% 底板之上再叠 15%,合成 27.75%),而设置页预览是单层,所以设置里的数值在列表上永远偏亮。现在呼吸中的行把行底色让给呼吸层,屏幕上看到的透明度就等于设置里的数值,和预览一致
169
170
 
170
171
  ### 1.0.37(2026-11-11)
171
172
 
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.38";
20
+ const PLUGIN_VERSION = "1.0.40";
21
21
  const NPM_LATEST_URL = "https://registry.npmjs.org/dsh-multipane/latest";
22
22
 
23
23
 
@@ -2174,6 +2174,14 @@ const TAB_LABEL_CHROME_DOT_PX = 46;
2174
2174
  [data-row-key^="session:"][data-dsv-pulse="1"][data-dsv-row="open"]{--dsv-pv-solid:var(--dsv-pv-openShown-solid,rgba(0,0,0,0));--dsv-pv-dur:var(--dsv-pv-openShown-dur,3s);--dsv-pv-o-lo:var(--dsv-pv-openShown-o-lo,.3);--dsv-pv-o-hi:var(--dsv-pv-openShown-o-hi,.6)}
2175
2175
  [data-row-key^="session:"][data-dsv-pulse="1"][data-dsv-row="open-hidden"]{--dsv-pv-solid:var(--dsv-pv-openHidden-solid,rgba(0,0,0,0));--dsv-pv-dur:var(--dsv-pv-openHidden-dur,3s);--dsv-pv-o-lo:var(--dsv-pv-openHidden-o-lo,.3);--dsv-pv-o-hi:var(--dsv-pv-openHidden-o-hi,.6)}
2176
2176
  [data-row-key^="session:"][data-dsv-pulse="1"]:not([data-dsv-row]){--dsv-pv-solid:var(--dsv-pv-unopened-solid,rgba(0,0,0,0));--dsv-pv-dur:var(--dsv-pv-unopened-dur,3s);--dsv-pv-o-lo:var(--dsv-pv-unopened-o-lo,.3);--dsv-pv-o-hi:var(--dsv-pv-unopened-o-hi,.6)}
2177
+ /* 呼吸时行底板必须让位(2026-11-11 用户:最亮填成和底板一样的值,看着还是明显更亮)。
2178
+ 行底色和呼吸伪元素是**两层**:底板 15% 之上再叠一层 15%,合成后 1-(1-.15)(1-.15)=27.75%,
2179
+ 所以设置里的「最亮」在真实列表里永远比底板亮一大截;而设置页预览是单层(直接动画
2180
+ background-color),两边对不上。让行底色透明、只留伪元素那一层,屏幕上看到的透明度就
2181
+ 等于设置里的数值。左竖线是 background-image,不受影响。 */
2182
+ [data-row-key^="session:"][data-dsv-pulse="1"][data-dsv-row="focus"],
2183
+ [data-row-key^="session:"][data-dsv-pulse="1"][data-dsv-row="open"],
2184
+ [data-row-key^="session:"][data-dsv-pulse="1"][data-dsv-row="open-hidden"]{background-color:transparent!important}
2177
2185
  .dsv-pv-row[data-pulse="1"][data-state="focus"]{background-color:var(--dsv-pv-c)!important;animation:dsv-breathe-active var(--dsv-pv-active-dur,3s) ease-in-out infinite}
2178
2186
  .dsv-pv-row[data-pulse="1"][data-state="open"]{background-color:var(--dsv-pv-c)!important;animation:dsv-breathe-open var(--dsv-pv-openShown-dur,3s) ease-in-out infinite}
2179
2187
  .dsv-pv-row[data-pulse="1"][data-state="open-hidden"]{background-color:var(--dsv-pv-c)!important;animation:dsv-breathe-hidden var(--dsv-pv-openHidden-dur,3s) ease-in-out infinite}
@@ -2274,12 +2282,16 @@ const TAB_LABEL_CHROME_DOT_PX = 46;
2274
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}
2275
2283
  .dsv-pane .dsv-body .dsv-tab-slot>*{flex:1 1 auto;min-height:0;min-width:0}
2276
2284
  .dsv-pane .dsv-body .dsv-tab-slot[data-active="0"]{display:none!important}
2277
- /* 活动阶段:让会话内容贴着输入框底部对齐(内容不足一屏时空白落到上方,而不是堆在回复下方)。
2285
+ /* 活动阶段:让**聊天视图**贴着输入框底部对齐(内容不足一屏时空白落到上方,而不是堆在回复下方)。
2278
2286
  ⚠️ 槽位 [data-slot="conversation.session"] 在宿主里是 display:contents(见 renderer 的
2279
2287
  ANCHOR_STYLE),它不参与布局,写 margin-top:auto 是空操作 —— 真正的 flex item 是它的
2280
- 子元素 .an3WzG_viewArea,auto margin 必须写在这里才生效。 */
2281
- .dsv-pane .dsv-body [data-content-phase="active"] .an3WzG_viewArea{flex:0 0 auto;margin-top:auto}
2282
- .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}
2283
2295
  /* 宿主聊天滚动管理器在「工具/明细折叠」后会在内容下方预留最多半个滚动区高度的空白,
2284
2296
  在窄栏里尤其明显;这里把它的预留位清零。 */
2285
2297
  .dsv-pane .dsv-body [data-chat-turn-spacer]{height:0!important}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-multipane",
3
- "version": "1.0.38",
3
+ "version": "1.0.40",
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": {