@ruckc/truss-graph 1.54.0 → 1.54.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/dist/Graph.svelte CHANGED
@@ -912,5 +912,6 @@
912
912
  .mmn[data-kind='danger'] { fill: var(--tr-danger); }
913
913
  .mmn[data-selected='true'] { stroke: var(--tr-on-surface); stroke-width: 1.5; }
914
914
  .mmv { fill: var(--tr-primary); fill-opacity: 0.12; stroke: var(--tr-primary); stroke-width: 1.5; pointer-events: none; }
915
- .controls { position: absolute; right: 8px; top: 8px; display: flex; gap: 2px; padding: 2px; background: var(--tr-surface-container-highest); border: 1px solid var(--tr-outline-variant); border-radius: var(--tr-radius-pill); box-shadow: var(--tr-elevation-2); cursor: default; }
915
+ /* the buttons sit at least 24px apart centre to centre (WCAG 2.5.8 spacing): 2px apart, 4px once compact makes them 20px (#292) */
916
+ .controls { position: absolute; right: 8px; top: 8px; display: flex; gap: max(2px, calc(24px - var(--tr-control-h-sm))); padding: 2px; background: var(--tr-surface-container-highest); border: 1px solid var(--tr-outline-variant); border-radius: var(--tr-radius-pill); box-shadow: var(--tr-elevation-2); cursor: default; }
916
917
  </style>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ruckc/truss-graph",
3
- "version": "1.54.0",
3
+ "version": "1.54.1",
4
4
  "description": "Zero-dependency node/edge graph editor for Truss UI",
5
5
  "type": "module",
6
6
  "license": "MIT",