@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/dist/styles.css
CHANGED
|
@@ -269,6 +269,14 @@
|
|
|
269
269
|
gap: 0.125rem;
|
|
270
270
|
}
|
|
271
271
|
|
|
272
|
+
/* A kind's own header controls: no gap of ours (tap buttons carry their own spacing). */
|
|
273
|
+
.mxc-kind-actions {
|
|
274
|
+
display: inline-flex;
|
|
275
|
+
align-items: center;
|
|
276
|
+
gap: 0;
|
|
277
|
+
min-width: 0;
|
|
278
|
+
}
|
|
279
|
+
|
|
272
280
|
.mxc-pane-body {
|
|
273
281
|
position: relative;
|
|
274
282
|
flex: 1 1 auto;
|
|
@@ -413,16 +421,19 @@
|
|
|
413
421
|
|
|
414
422
|
/*
|
|
415
423
|
* TAB DENSITY (Claude Code / Codex): 12.5px text, a 14px icon, 6px side
|
|
416
|
-
* padding. Tabs shrink evenly from 8rem to a
|
|
417
|
-
*
|
|
424
|
+
* padding. Tabs shrink evenly from 8rem to a 4.5rem floor, then the strip
|
|
425
|
+
* scrolls (a tab is never squeezed to three letters). A background tab
|
|
426
|
+
* narrower than 6rem drops its icon so its name keeps the room. The active
|
|
427
|
+
* tab keeps icon + ~10 letters + its close.
|
|
418
428
|
* The close button is OVERLAID on the tab's end and costs no width while
|
|
419
429
|
* hidden; shown (hover, active, focus) the title fades under it.
|
|
420
430
|
*/
|
|
421
431
|
.mxc-tab {
|
|
422
432
|
position: relative;
|
|
423
433
|
flex: 1 1 8rem;
|
|
424
|
-
min-width:
|
|
434
|
+
min-width: 4.5rem;
|
|
425
435
|
max-width: 12rem;
|
|
436
|
+
container: mxc-tab / inline-size;
|
|
426
437
|
display: flex;
|
|
427
438
|
align-items: center;
|
|
428
439
|
gap: 0.3125rem;
|
|
@@ -439,7 +450,7 @@
|
|
|
439
450
|
}
|
|
440
451
|
|
|
441
452
|
.mxc-tab[data-active] {
|
|
442
|
-
min-width: min(
|
|
453
|
+
min-width: min(7.5rem, 100%);
|
|
443
454
|
background: var(--mxc-tab-active-bg);
|
|
444
455
|
color: var(--mxc-fg);
|
|
445
456
|
box-shadow: var(--mxc-tab-active-shadow);
|
|
@@ -469,6 +480,12 @@
|
|
|
469
480
|
opacity: 0.75;
|
|
470
481
|
}
|
|
471
482
|
|
|
483
|
+
@container mxc-tab (max-width: 6rem) {
|
|
484
|
+
.mxc-tab:not([data-active]) .mxc-tab-icon {
|
|
485
|
+
display: none;
|
|
486
|
+
}
|
|
487
|
+
}
|
|
488
|
+
|
|
472
489
|
.mxc-tab-icon svg,
|
|
473
490
|
.mxc-favicon {
|
|
474
491
|
width: 0.875rem;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ai-matrx/canvas",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.3",
|
|
4
4
|
"description": "The AI Matrx canvas: a docked right-hand column with split panes, tabs, full screen, a kind registry, Redux-compatible state and persistence.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|