@pipelex/mthds-ui 0.33.0 → 0.34.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.
@@ -405,3 +405,64 @@
405
405
  padding-top: 1px;
406
406
  color: var(--color-accent);
407
407
  }
408
+
409
+ /* ─── Phones: 44×44 touch targets ───────────────────────────────────────── */
410
+ /* Below 640px (Tailwind's `sm` breakpoint) every toolbar button, the style
411
+ menu's trigger and the validation button included, is a 44×44 target, the
412
+ size a fingertip needs. The button itself grows rather than gaining an
413
+ invisible extended hit area: the buttons sit 4px apart, so an area reaching
414
+ 44px would cover its neighbour's and take the taps meant for it. Desktop
415
+ sizes are untouched.
416
+
417
+ A bar of 44px buttons can be wider than a phone (or, on an edge anchor,
418
+ taller than the viewer), so below 640px it wraps, never reaching past
419
+ ReactFlow's 15px panel margin. The group separators are hidden there, since
420
+ a wrapped row would end on one. */
421
+ @media (max-width: 639.98px) {
422
+ .graph-toolbar-panel {
423
+ /* Not the shrink-to-fit width: for a `top-center` / `bottom-center` bar
424
+ that is the half of the viewer `left: 50%` leaves it. */
425
+ width: max-content;
426
+ max-width: calc(100% - 2 * 15px);
427
+ max-height: calc(100% - 2 * 15px);
428
+ }
429
+
430
+ .graph-toolbar {
431
+ flex-wrap: wrap;
432
+ }
433
+
434
+ .graph-toolbar-separator {
435
+ display: none;
436
+ }
437
+
438
+ /* A row bar's short last row sits under the side it is anchored to. */
439
+ .graph-toolbar-panel--horizontal.right .graph-toolbar {
440
+ justify-content: flex-end;
441
+ }
442
+
443
+ .graph-toolbar-panel--horizontal.center .graph-toolbar {
444
+ justify-content: center;
445
+ }
446
+
447
+ /* An edge anchor's column, as a flex item of the panel, is held to the
448
+ panel's capped height, so it wraps into a second column, which grows
449
+ toward the graph rather than off the viewer's edge. */
450
+ .graph-toolbar-panel--vertical {
451
+ display: flex;
452
+ }
453
+
454
+ .graph-toolbar-panel--vertical.right .graph-toolbar {
455
+ flex-wrap: wrap-reverse;
456
+ }
457
+
458
+ .graph-toolbar-btn {
459
+ width: 44px;
460
+ height: 44px;
461
+ border-radius: 8px;
462
+ }
463
+
464
+ .graph-toolbar-btn svg {
465
+ width: 18px;
466
+ height: 18px;
467
+ }
468
+ }