@ai-matrx/canvas 0.7.1 → 0.7.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/dist/styles.css CHANGED
@@ -583,11 +583,17 @@
583
583
  text-overflow: ellipsis;
584
584
  }
585
585
 
586
- /* A background tab's close is overlaid while shown: the name's end fades under it. */
587
- .mxc-tab:not([data-active]):hover:has(> .mxc-tab-close) .mxc-tab-title,
588
- .mxc-tab:not([data-active]):focus-within:has(> .mxc-tab-close) .mxc-tab-title {
589
- -webkit-mask-image: linear-gradient(to left, transparent 1.125rem, #000 1.875rem);
590
- mask-image: linear-gradient(to left, transparent 1.125rem, #000 1.875rem);
586
+ /*
587
+ * A background tab's close shows on hover / focus, and while it shows the name
588
+ * ends (ellipsis) before it: the room is reserved then, never overlaid. Touch
589
+ * screens have no hover, so a background tab shows no close there at all (only
590
+ * the active tab does) and its name keeps the room.
591
+ */
592
+ @media (hover: hover) {
593
+ .mxc-tab:not([data-active]):hover:has(> .mxc-tab-close),
594
+ .mxc-tab:not([data-active]):focus-within:has(> .mxc-tab-close) {
595
+ padding-right: 1.25rem;
596
+ }
591
597
  }
592
598
 
593
599
  .mxc-tab-note {
@@ -638,11 +644,10 @@
638
644
  box-shadow: 0 0 0 2px var(--mxc-ring);
639
645
  }
640
646
 
641
- /* Touch screens have no hover: every tab's close is reachable. */
647
+ /* Touch screens have no hover: only the active tab shows a close, so names get the room. */
642
648
  @media (pointer: coarse) {
643
- .mxc-tab .mxc-tab-close {
644
- opacity: 1;
645
- pointer-events: auto;
649
+ .mxc-tab:not([data-active]) .mxc-tab-close {
650
+ display: none;
646
651
  }
647
652
  }
648
653
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-matrx/canvas",
3
- "version": "0.7.1",
3
+ "version": "0.7.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",