@ai-matrx/canvas 0.7.0 → 0.7.1
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 +11 -0
- package/dist/react.cjs +3 -3
- package/dist/react.cjs.map +1 -1
- package/dist/react.d.cts +4 -4
- package/dist/react.d.ts +4 -4
- package/dist/react.js +3 -3
- package/dist/react.js.map +1 -1
- package/dist/styles.css +8 -4
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.7.1
|
|
4
|
+
|
|
5
|
+
Measured live on 0.7.0 (a 480px strip, six tabs):
|
|
6
|
+
|
|
7
|
+
- **The active tab never runs under "All tabs".** Its `flex-shrink: 0.2` made it the last tab still shrinking, and the flex algorithm then hands such an item only that fraction of the overflow — it stayed 25px too wide, its close clipped beside the button. Priority width is now its higher floor alone.
|
|
8
|
+
- **Floors hold ~7 letters:** "Messa…" at 78px. `CANVAS_TAB_MIN_WIDTH` 88px ("Messag…"), `CANVAS_ACTIVE_TAB_MIN_WIDTH` 112px; the fit reserves 36px for the "All tabs" button.
|
|
9
|
+
|
|
10
|
+
### Consumer action
|
|
11
|
+
|
|
12
|
+
- None.
|
|
13
|
+
|
|
3
14
|
## 0.7.0
|
|
4
15
|
|
|
5
16
|
Second independent live sweep (admin, clone):
|
package/dist/react.cjs
CHANGED
|
@@ -3180,9 +3180,9 @@ function SingleTitle({ item, kind }) {
|
|
|
3180
3180
|
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)("button", { type: "button", className: "mxc-tab-close", "data-slot": "browser-tab-close", "aria-label": `Close ${title}`, onClick: () => canvas.close(item.id), children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(CloseIcon, {}) })
|
|
3181
3181
|
] });
|
|
3182
3182
|
}
|
|
3183
|
-
var CANVAS_TAB_MIN_WIDTH =
|
|
3184
|
-
var CANVAS_ACTIVE_TAB_MIN_WIDTH =
|
|
3185
|
-
var TAB_LIST_BUTTON_ROOM =
|
|
3183
|
+
var CANVAS_TAB_MIN_WIDTH = 88;
|
|
3184
|
+
var CANVAS_ACTIVE_TAB_MIN_WIDTH = 112;
|
|
3185
|
+
var TAB_LIST_BUTTON_ROOM = 36;
|
|
3186
3186
|
var TAB_GAP = 2;
|
|
3187
3187
|
function fitCanvasTabs(count, activeIndex, width) {
|
|
3188
3188
|
if (count <= 0) return { start: 0, end: 0, overflow: false, compact: false };
|