@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/CHANGELOG.md +18 -0
- package/dist/react.cjs +6 -1
- package/dist/react.cjs.map +1 -1
- package/dist/react.js +6 -1
- package/dist/react.js.map +1 -1
- package/dist/styles.css +21 -4
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.5.3
|
|
4
|
+
|
|
5
|
+
- A kind's `HeaderAction` renders in its own gapless row (`.mxc-kind-actions`): tap-target buttons space themselves, and the pane's 2px action gap tripped the tap-target misuse guard over the tab strip (seen live with Quick Chat).
|
|
6
|
+
|
|
7
|
+
### Consumer action
|
|
8
|
+
|
|
9
|
+
- None.
|
|
10
|
+
|
|
11
|
+
## 0.5.2
|
|
12
|
+
|
|
13
|
+
Live check at a 380px canvas with five tabs: background tabs still showed ~3 letters.
|
|
14
|
+
|
|
15
|
+
- Tabs never squeeze below 4.5rem; past that the strip scrolls (active tab kept in view, also when its siblings resize). A background tab narrower than 6rem drops its icon so its name keeps the room (~9 letters). The active tab keeps at least 7.5rem (icon + ~10 letters + close).
|
|
16
|
+
|
|
17
|
+
### Consumer action
|
|
18
|
+
|
|
19
|
+
- None.
|
|
20
|
+
|
|
3
21
|
## 0.5.1
|
|
4
22
|
|
|
5
23
|
Measured live slowness (perf lane), fixed at the subscriptions:
|
package/dist/react.cjs
CHANGED
|
@@ -2827,7 +2827,10 @@ function CanvasPaneView({ paneId }) {
|
|
|
2827
2827
|
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)(CanvasHeaderButton, { className: "mxc-new-tab", label: "New tab", onClick: () => void canvas.newTab(paneId), children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(PlusIcon, {}) })
|
|
2828
2828
|
] }),
|
|
2829
2829
|
leading: Leading && kindProps ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Leading, { ...kindProps }) : null,
|
|
2830
|
-
actions: Action && kindProps ?
|
|
2830
|
+
actions: Action && kindProps ? (
|
|
2831
|
+
// Its own gapless row: a kind's tap buttons space themselves (the tap-target placement rule).
|
|
2832
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: "mxc-kind-actions", children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Action, { ...kindProps }) })
|
|
2833
|
+
) : null,
|
|
2831
2834
|
renderMenu: () => /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(PaneMenu, { paneId, windowId, activeItem: active, kind, kindProps, tabCount: pane.itemIds.length, role }),
|
|
2832
2835
|
expanded: isFullscreen,
|
|
2833
2836
|
onToggleExpand: () => canvas.setFullscreen(!isFullscreen),
|
|
@@ -2885,6 +2888,8 @@ function TabStrip({ paneId, itemIds, activeItemId }) {
|
|
|
2885
2888
|
reveal();
|
|
2886
2889
|
const observer = typeof ResizeObserver === "undefined" ? null : new ResizeObserver(reveal);
|
|
2887
2890
|
observer?.observe(el);
|
|
2891
|
+
const activeTab = el.querySelector('[role="tab"][aria-selected="true"]');
|
|
2892
|
+
if (activeTab) observer?.observe(activeTab);
|
|
2888
2893
|
return () => observer?.disconnect();
|
|
2889
2894
|
}, [activeItemId, itemIds.length]);
|
|
2890
2895
|
return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|