fix(console): 聊天分隔线修复——加载后按规格钳制存档chatW(脏值1067→600,setChatW同兜底max);分隔线向内容侧偏移3px,避开与宿主聊天区2px重叠(不加宽)

This commit is contained in:
Aisland
2026-09-02 20:31:24 +08:00
parent 173fd61bda
commit 5c6c04d70a
11 changed files with 43 additions and 4 deletions
+6
View File
@@ -0,0 +1,6 @@
$ErrorActionPreference = 'Stop'
opencli --profile 74u3g3us browser wt eval "(() => { const s = window.__dshWorktable && window.__dshWorktable.splitStore; return s && s.active ? JSON.stringify({ right: s.geom && s.geom.right, chatW: s.chatW, bar: BARH_dummy || undefined }) : 'no-split'; })()"
Start-Sleep -Milliseconds 300
opencli --profile 74u3g3us browser wt eval "(() => { const s = window.__dshWorktable && window.__dshWorktable.splitStore; if (!s || !s.active || !s.geom) return 'no-active'; const x = s.geom.right - s.chatW - 2; const y = (s.geom.top + s.geom.bottom) / 2; const el = document.elementFromPoint(x, y); const arr = []; let n = el; let d = 0; while (n && d < 3) { arr.push(n.tagName + '.' + String(n.className).split(' ').slice(0,3).join('.')); n = n.parentElement; d++; } return JSON.stringify({ x: Math.round(x), y: Math.round(y), hit: arr }); })()"
Start-Sleep -Milliseconds 300
opencli --profile 74u3g3us browser wt eval "(() => { const s = window.__dshWorktable && window.__dshWorktable.splitStore; if (!s || !s.geom) return 'no'; const x = s.geom.right - s.chatW - 2; const y = (s.geom.top + s.geom.bottom) / 2; const el = document.elementFromPoint(x, y); return el ? (el.closest('.dsh-wt_splitDivider') ? 'hit-divider' : el.closest('[data-phase]') ? 'hit-host-chat' : el.closest('.dsh-wt_pane') ? 'hit-pane' : 'hit-other:' + el.tagName) : 'null'; })()"