@booboo-brain/panel 0.5.1 → 0.5.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.
package/dist/index.js CHANGED
@@ -511,10 +511,34 @@ body { font-family: var(--font); color: var(--ink); background: var(--bg); overf
511
511
  .pnl-fatal.calm { color: var(--ink-2); }
512
512
 
513
513
  @media (max-width: 760px) {
514
- .doss { position: fixed; right: 0; top: 0; bottom: 0; z-index: 5; width: min(340px, 88vw); box-shadow: -18px 0 50px rgba(0, 0, 0, 0.5); }
515
- .tree { padding: 20px 14px 60px; }
514
+ /* compact chrome */
515
+ .bar { gap: 8px 14px; padding: 9px 12px; }
516
+ .bar-brand { font-size: 13px; }
517
+ .bar-stats { gap: 11px; font-size: 11px; }
518
+ .bar-stats b { font-size: 12.5px; }
519
+ .bar-actions { gap: 6px; }
520
+ .btn { padding: 6px 11px; font-size: 11.5px; }
521
+ .tabs { padding: 0 4px; }
522
+ .tab { padding: 10px 9px 9px; font-size: 11.5px; }
523
+ .tree { padding: 12px 8px 40px; }
524
+ .tree-hint { display: none; }
516
525
  .ag { max-width: 100%; }
517
526
  .ag-role { display: none; }
527
+ .screen { padding: 18px 13px 60px; }
528
+ /* the dossier becomes a BOTTOM SHEET inside the pane — the chart above stays
529
+ tappable to switch agents; the ✕ closes. ABSOLUTE (not fixed) so it can
530
+ never overlap an embedding host's chrome. */
531
+ .doss {
532
+ position: absolute; left: 0; right: 0; bottom: 0; top: 34%;
533
+ width: auto; z-index: 6; border-radius: 16px 16px 0 0;
534
+ border-top: 1px solid var(--line);
535
+ box-shadow: 0 -18px 50px rgba(0, 0, 0, 0.55);
536
+ }
537
+ .doss { animation: sheetup 0.25s ease both; }
538
+ @keyframes sheetup { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
539
+ .doss-close { display: grid; }
540
+ /* zoom control clears the sheet — top-right of the chart */
541
+ .zoomer { top: 4px; right: 8px; bottom: auto; }
518
542
  }
519
543
  `;
520
544
 
@@ -873,6 +897,7 @@ function Dossier({
873
897
  onAdd,
874
898
  onRemove,
875
899
  onSelect,
900
+ onClose,
876
901
  health = null
877
902
  }) {
878
903
  const api = useApi();
@@ -963,7 +988,8 @@ function Dossier({
963
988
  ] }),
964
989
  /* @__PURE__ */ jsxs("div", { className: "doss-head-actions", children: [
965
990
  !edit && /* @__PURE__ */ jsx("button", { className: "doss-3d", title: "edit this agent", onClick: startEdit, children: "\u270E edit" }),
966
- hasSnapshot && /* @__PURE__ */ jsx("button", { className: "doss-3d", title: "see the whole brain in 3D", onClick: () => nav("/graph"), children: "\u25C9 3D" })
991
+ hasSnapshot && /* @__PURE__ */ jsx("button", { className: "doss-3d", title: "see the whole brain in 3D", onClick: () => nav("/graph"), children: "\u25C9 3D" }),
992
+ /* @__PURE__ */ jsx("button", { className: "doss-close", title: "close the dossier", "aria-label": "close the dossier", onClick: onClose, children: "\u2715" })
967
993
  ] })
968
994
  ] }),
969
995
  edit && /* @__PURE__ */ jsxs("div", { className: "doss-edit", children: [
@@ -1275,6 +1301,7 @@ function OrgScreen({
1275
1301
  onAdd,
1276
1302
  onRemove,
1277
1303
  onSelect: setSelected,
1304
+ onClose: () => setSelected(null),
1278
1305
  health
1279
1306
  }
1280
1307
  )