@flytedan/flytebot-design-system 0.12.4 → 0.12.5

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flytedan/flytebot-design-system",
3
- "version": "0.12.4",
3
+ "version": "0.12.5",
4
4
  "description": "flytedesk Design System — shared component library, tokens, and business-logic kits for flytedesk apps.",
5
5
  "type": "module",
6
6
  "license": "UNLICENSED",
@@ -678,9 +678,16 @@
678
678
  border-color: var(--border-strong);
679
679
  transform: translateY(-1px);
680
680
  }
681
+ /* The header degrades in two steps as the action slot needs more room than is left:
682
+ first the title gives up ITS OWN spare width (ordinary flex-shrink) down to
683
+ fd-card-head-title's min-width; once even that doesn't leave enough room for the
684
+ action slot, flex-wrap moves the action onto its own row below the title rather than
685
+ continuing to squeeze the title past a readable width. Nothing here is per-consumer —
686
+ a wide action slot (badges, buttons, a switch) never needs an app-side workaround. */
681
687
  .fd-card-head {
682
688
  display: flex;
683
689
  align-items: center;
690
+ flex-wrap: wrap;
684
691
  gap: 12px;
685
692
  padding: 16px 18px;
686
693
  border-bottom: 1px solid var(--border);
@@ -691,7 +698,13 @@
691
698
  letter-spacing: var(--h3-track);
692
699
  font-weight: var(--w-semibold);
693
700
  flex: 1;
694
- min-width: 0;
701
+ /* The floor the title may shrink to before the action slot is made to wrap instead —
702
+ enough for a short word plus an ellipsis, never zero. Text past this on one line
703
+ truncates rather than overflowing the header. */
704
+ min-width: 120px;
705
+ overflow: hidden;
706
+ text-overflow: ellipsis;
707
+ white-space: nowrap;
695
708
  }
696
709
  .fd-card-body {
697
710
  padding: 18px;
@@ -1387,6 +1400,8 @@
1387
1400
  .fd-soon-cone-mark i {
1388
1401
  font-size: 11px;
1389
1402
  }
1403
+ /* The z-index below is a resting default only — ComingSoon.tsx always sets it inline via
1404
+ useOverlayLayer(SOON_HOVERCARD_BASE), which wins over this rule (see Popover.tsx). */
1390
1405
  .fd-soon-hovercard {
1391
1406
  transform: none;
1392
1407
  z-index: 220;
@@ -6202,6 +6217,8 @@ button.fd-erow-metric:focus-visible {
6202
6217
  border: 1.5px solid var(--surface);
6203
6218
  animation: fd-badge-pop 260ms var(--ease) both;
6204
6219
  }
6220
+ /* The z-index below is a resting default only — ModeSwitch.tsx always sets it inline via
6221
+ useOverlayLayer(MODE_SWITCH_BASE), which wins over this rule (see Popover.tsx). */
6205
6222
  .fd-mode-pop {
6206
6223
  position: absolute;
6207
6224
  top: calc(100% + 8px);