@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/dist/react.d.cts
CHANGED
|
@@ -384,10 +384,10 @@ declare function itemTitle(item: CanvasItem, kind: AnyCanvasKind | undefined): s
|
|
|
384
384
|
declare function CanvasPaneView({ paneId }: {
|
|
385
385
|
paneId: CanvasPaneId;
|
|
386
386
|
}): react.JSX.Element | null;
|
|
387
|
-
/** A background tab's floor (px): icon + ~
|
|
388
|
-
declare const CANVAS_TAB_MIN_WIDTH =
|
|
389
|
-
/** The active tab's floor (px): icon + ~
|
|
390
|
-
declare const CANVAS_ACTIVE_TAB_MIN_WIDTH =
|
|
387
|
+
/** A background tab's floor (px): icon + ~7 letters + "…" ("Messag…"). Mirrored to CSS as --mxc-tab-min. */
|
|
388
|
+
declare const CANVAS_TAB_MIN_WIDTH = 88;
|
|
389
|
+
/** The active tab's floor (px): icon + ~8 letters + "…" + its close. Mirrored to CSS as --mxc-tab-active-min. */
|
|
390
|
+
declare const CANVAS_ACTIVE_TAB_MIN_WIDTH = 112;
|
|
391
391
|
/**
|
|
392
392
|
* Which tabs the strip shows at this width: all of them when every tab fits
|
|
393
393
|
* at its floor, else as many as fit — always the active one — and the rest
|
package/dist/react.d.ts
CHANGED
|
@@ -384,10 +384,10 @@ declare function itemTitle(item: CanvasItem, kind: AnyCanvasKind | undefined): s
|
|
|
384
384
|
declare function CanvasPaneView({ paneId }: {
|
|
385
385
|
paneId: CanvasPaneId;
|
|
386
386
|
}): react.JSX.Element | null;
|
|
387
|
-
/** A background tab's floor (px): icon + ~
|
|
388
|
-
declare const CANVAS_TAB_MIN_WIDTH =
|
|
389
|
-
/** The active tab's floor (px): icon + ~
|
|
390
|
-
declare const CANVAS_ACTIVE_TAB_MIN_WIDTH =
|
|
387
|
+
/** A background tab's floor (px): icon + ~7 letters + "…" ("Messag…"). Mirrored to CSS as --mxc-tab-min. */
|
|
388
|
+
declare const CANVAS_TAB_MIN_WIDTH = 88;
|
|
389
|
+
/** The active tab's floor (px): icon + ~8 letters + "…" + its close. Mirrored to CSS as --mxc-tab-active-min. */
|
|
390
|
+
declare const CANVAS_ACTIVE_TAB_MIN_WIDTH = 112;
|
|
391
391
|
/**
|
|
392
392
|
* Which tabs the strip shows at this width: all of them when every tab fits
|
|
393
393
|
* at its floor, else as many as fit — always the active one — and the rest
|
package/dist/react.js
CHANGED
|
@@ -3135,9 +3135,9 @@ function SingleTitle({ item, kind }) {
|
|
|
3135
3135
|
/* @__PURE__ */ jsx7("button", { type: "button", className: "mxc-tab-close", "data-slot": "browser-tab-close", "aria-label": `Close ${title}`, onClick: () => canvas.close(item.id), children: /* @__PURE__ */ jsx7(CloseIcon, {}) })
|
|
3136
3136
|
] });
|
|
3137
3137
|
}
|
|
3138
|
-
var CANVAS_TAB_MIN_WIDTH =
|
|
3139
|
-
var CANVAS_ACTIVE_TAB_MIN_WIDTH =
|
|
3140
|
-
var TAB_LIST_BUTTON_ROOM =
|
|
3138
|
+
var CANVAS_TAB_MIN_WIDTH = 88;
|
|
3139
|
+
var CANVAS_ACTIVE_TAB_MIN_WIDTH = 112;
|
|
3140
|
+
var TAB_LIST_BUTTON_ROOM = 36;
|
|
3141
3141
|
var TAB_GAP = 2;
|
|
3142
3142
|
function fitCanvasTabs(count, activeIndex, width) {
|
|
3143
3143
|
if (count <= 0) return { start: 0, end: 0, overflow: false, compact: false };
|