@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/dist/styles.css
CHANGED
|
@@ -413,16 +413,19 @@
|
|
|
413
413
|
|
|
414
414
|
/*
|
|
415
415
|
* TAB DENSITY (Claude Code / Codex): 12.5px text, a 14px icon, 6px side
|
|
416
|
-
* padding. Tabs shrink evenly from 8rem to a
|
|
417
|
-
*
|
|
416
|
+
* padding. Tabs shrink evenly from 8rem to a 4.5rem floor, then the strip
|
|
417
|
+
* scrolls (a tab is never squeezed to three letters). A background tab
|
|
418
|
+
* narrower than 6rem drops its icon so its name keeps the room. The active
|
|
419
|
+
* tab keeps icon + ~10 letters + its close.
|
|
418
420
|
* The close button is OVERLAID on the tab's end and costs no width while
|
|
419
421
|
* hidden; shown (hover, active, focus) the title fades under it.
|
|
420
422
|
*/
|
|
421
423
|
.mxc-tab {
|
|
422
424
|
position: relative;
|
|
423
425
|
flex: 1 1 8rem;
|
|
424
|
-
min-width:
|
|
426
|
+
min-width: 4.5rem;
|
|
425
427
|
max-width: 12rem;
|
|
428
|
+
container: mxc-tab / inline-size;
|
|
426
429
|
display: flex;
|
|
427
430
|
align-items: center;
|
|
428
431
|
gap: 0.3125rem;
|
|
@@ -439,7 +442,7 @@
|
|
|
439
442
|
}
|
|
440
443
|
|
|
441
444
|
.mxc-tab[data-active] {
|
|
442
|
-
min-width: min(
|
|
445
|
+
min-width: min(7.5rem, 100%);
|
|
443
446
|
background: var(--mxc-tab-active-bg);
|
|
444
447
|
color: var(--mxc-fg);
|
|
445
448
|
box-shadow: var(--mxc-tab-active-shadow);
|
|
@@ -469,6 +472,12 @@
|
|
|
469
472
|
opacity: 0.75;
|
|
470
473
|
}
|
|
471
474
|
|
|
475
|
+
@container mxc-tab (max-width: 6rem) {
|
|
476
|
+
.mxc-tab:not([data-active]) .mxc-tab-icon {
|
|
477
|
+
display: none;
|
|
478
|
+
}
|
|
479
|
+
}
|
|
480
|
+
|
|
472
481
|
.mxc-tab-icon svg,
|
|
473
482
|
.mxc-favicon {
|
|
474
483
|
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.2",
|
|
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",
|