@ai-matrx/canvas 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/CHANGELOG.md +10 -0
- package/dist/react.cjs +2 -0
- package/dist/react.cjs.map +1 -1
- package/dist/react.js +2 -0
- package/dist/react.js.map +1 -1
- package/dist/styles.css +13 -4
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.5.2
|
|
4
|
+
|
|
5
|
+
Live check at a 380px canvas with five tabs: background tabs still showed ~3 letters.
|
|
6
|
+
|
|
7
|
+
- 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).
|
|
8
|
+
|
|
9
|
+
### Consumer action
|
|
10
|
+
|
|
11
|
+
- None.
|
|
12
|
+
|
|
3
13
|
## 0.5.1
|
|
4
14
|
|
|
5
15
|
Measured live slowness (perf lane), fixed at the subscriptions:
|
package/dist/react.cjs
CHANGED
|
@@ -2885,6 +2885,8 @@ function TabStrip({ paneId, itemIds, activeItemId }) {
|
|
|
2885
2885
|
reveal();
|
|
2886
2886
|
const observer = typeof ResizeObserver === "undefined" ? null : new ResizeObserver(reveal);
|
|
2887
2887
|
observer?.observe(el);
|
|
2888
|
+
const activeTab = el.querySelector('[role="tab"][aria-selected="true"]');
|
|
2889
|
+
if (activeTab) observer?.observe(activeTab);
|
|
2888
2890
|
return () => observer?.disconnect();
|
|
2889
2891
|
}, [activeItemId, itemIds.length]);
|
|
2890
2892
|
return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|