@ai-matrx/canvas 0.5.1 → 0.5.3

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/react.js CHANGED
@@ -2786,7 +2786,10 @@ function CanvasPaneView({ paneId }) {
2786
2786
  /* @__PURE__ */ jsx7(CanvasHeaderButton, { className: "mxc-new-tab", label: "New tab", onClick: () => void canvas.newTab(paneId), children: /* @__PURE__ */ jsx7(PlusIcon, {}) })
2787
2787
  ] }),
2788
2788
  leading: Leading && kindProps ? /* @__PURE__ */ jsx7(Leading, { ...kindProps }) : null,
2789
- actions: Action && kindProps ? /* @__PURE__ */ jsx7(Action, { ...kindProps }) : null,
2789
+ actions: Action && kindProps ? (
2790
+ // Its own gapless row: a kind's tap buttons space themselves (the tap-target placement rule).
2791
+ /* @__PURE__ */ jsx7("span", { className: "mxc-kind-actions", children: /* @__PURE__ */ jsx7(Action, { ...kindProps }) })
2792
+ ) : null,
2790
2793
  renderMenu: () => /* @__PURE__ */ jsx7(PaneMenu, { paneId, windowId, activeItem: active, kind, kindProps, tabCount: pane.itemIds.length, role }),
2791
2794
  expanded: isFullscreen,
2792
2795
  onToggleExpand: () => canvas.setFullscreen(!isFullscreen),
@@ -2844,6 +2847,8 @@ function TabStrip({ paneId, itemIds, activeItemId }) {
2844
2847
  reveal();
2845
2848
  const observer = typeof ResizeObserver === "undefined" ? null : new ResizeObserver(reveal);
2846
2849
  observer?.observe(el);
2850
+ const activeTab = el.querySelector('[role="tab"][aria-selected="true"]');
2851
+ if (activeTab) observer?.observe(activeTab);
2847
2852
  return () => observer?.disconnect();
2848
2853
  }, [activeItemId, itemIds.length]);
2849
2854
  return /* @__PURE__ */ jsx7(