@wendongfly/myhi 1.3.220 → 1.3.221

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.
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.3.220",
3
- "commit": "0b70266",
4
- "builtAt": "2026-11-15T12:58:40.667Z"
2
+ "version": "1.3.221",
3
+ "commit": "96cc8c0",
4
+ "builtAt": "2026-11-16T06:04:46.037Z"
5
5
  }
package/dist/index.html CHANGED
@@ -283,6 +283,9 @@
283
283
  原来收起后只剩左下角一个小「» 任务」,还压在快捷栏上,普通用户根本发现不了 */
284
284
  body.ws.ws-collapsed #app { display: none; }
285
285
  body.ws.ws-collapsed #ws-main { left: 56px; }
286
+ /* 出图 / 语音处理:任务栏整个让出来,功能页自己的左栏(导航 + 填写区 + 历史)+ 右侧结果铺满屏幕 */
287
+ body.ws.tool-mode #app, body.ws.tool-mode #ws-rail { display: none !important; }
288
+ body.ws.tool-mode #ws-main { left: 0; }
286
289
  body.ws.ws-collapsed #ws-rail { display: flex; position: fixed; left: 0; top: 0; bottom: 0; width: 56px; flex-direction: column; align-items: center;
287
290
  gap: 0.35rem; padding: 0.7rem 0 0.6rem; background: var(--surface); border-right: 1px solid var(--border); z-index: 20; }
288
291
  #ws-rail .rb { position: relative; width: 38px; height: 38px; border-radius: 10px; border: none; background: none; color: var(--text2); font-size: 1.05rem;
@@ -2401,7 +2404,13 @@
2401
2404
  document.querySelectorAll('#main-nav [data-nav]').forEach(b => b.classList.toggle('on', b.dataset.nav === k));
2402
2405
  document.querySelectorAll('#ws-rail [data-nav]').forEach(b => b.classList.toggle('on', b.dataset.nav === k));
2403
2406
  }
2404
- function hideTools() { for (const f of _toolFrames.values()) f.style.display = 'none'; _tool = null; setNavActive('tasks'); }
2407
+ function hideTools() { for (const f of _toolFrames.values()) f.style.display = 'none'; _tool = null; document.body.classList.remove('tool-mode'); setNavActive('tasks'); }
2408
+ // 功能页(同源 iframe)左栏里的导航 / ⚙:发消息回首页切换
2409
+ window.addEventListener('message', (e) => {
2410
+ if (e.origin !== location.origin || e.data?.type !== 'myhi-nav') return;
2411
+ if (e.data.to === 'settings') { window.focus(); openSettings(); document.getElementById('set-sheet')?.focus?.(); return; } // 焦点拿回首页:Esc 能关设置
2412
+ mainNav(e.data.to);
2413
+ });
2405
2414
  window.mainNav = function(k) {
2406
2415
  if (k === 'tasks') {
2407
2416
  if (!_tool) return;
@@ -2424,6 +2433,7 @@
2424
2433
  for (const [n, fr] of _toolFrames) fr.style.display = n === k ? '' : 'none';
2425
2434
  document.getElementById('ws-welcome').style.display = 'none';
2426
2435
  _wsCur = null; _tool = k;
2436
+ document.body.classList.add('tool-mode');
2427
2437
  history.replaceState(null, '', '/?tool=' + k);
2428
2438
  document.title = TOOL_TITLE[k] + ' — myhi';
2429
2439
  setNavActive(k);
Binary file