dsh-conversation-navigator 0.1.1 → 0.1.2

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.
Files changed (2) hide show
  1. package/lib/client.js +2 -4
  2. package/package.json +1 -1
package/lib/client.js CHANGED
@@ -412,11 +412,9 @@ window.__ModuleLoader__.load({
412
412
  const vw = document.documentElement.clientWidth || 1000;
413
413
  const vh = document.documentElement.clientHeight || 800;
414
414
  const sp = document.querySelector("[data-conversation-scroll]");
415
- const rect = sp !== null ? sp.getBoundingClientRect() : { left: 300, top: 60, height: vh - 90 };
415
+ const rect = sp !== null ? sp.getBoundingClientRect() : { top: 60, height: vh - 90 };
416
416
  const width = 288;
417
- let left = rect.left - width - 12;
418
- if (left < 12) left = rect.left + 12;
419
- if (left + width > vw - 8) left = Math.max(8, vw - width - 8);
417
+ const left = Math.max(8, vw - width - 12);
420
418
  panel.style.left = Math.round(left) + "px";
421
419
  panel.style.top = Math.max(8, Math.round(rect.top + 8)) + "px";
422
420
  panel.style.maxHeight = Math.round(Math.min(rect.height - 24, vh - 40)) + "px";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-conversation-navigator",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "Codex 风格的 DSH(DeepSeek Harness)会话导航插件:按轮折叠的对话大纲面板,支持节点点击跳转、滚动位置高亮与轨迹视图同款配色。",
5
5
  "keywords": [
6
6
  "dsh",