@flytedan/flytebot-design-system 0.12.14 → 0.12.15

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.14",
3
+ "version": "0.12.15",
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",
@@ -2252,7 +2252,16 @@
2252
2252
  padding: 0 var(--gutter-lg);
2253
2253
  position: relative;
2254
2254
  }
2255
+ /* MP-141: the breadcrumb is the Topbar's only elastic item. Every other direct child
2256
+ (overflowActions, actions — the version badge, the account trigger, any icon button)
2257
+ keeps its content width at any viewport: it never shrinks below what its own content
2258
+ needs. The crumb absorbs whatever space that leaves, growing to fill the row (so no
2259
+ separate spacer element is needed) and shrinking first when the row is tight. */
2260
+ .fd-topbar > *:not(.fd-crumb) {
2261
+ flex-shrink: 0;
2262
+ }
2255
2263
  .fd-crumb {
2264
+ flex: 1 1 auto;
2256
2265
  display: flex;
2257
2266
  align-items: center;
2258
2267
  gap: 9px;
@@ -2266,7 +2275,15 @@
2266
2275
  .fd-crumb a:hover {
2267
2276
  color: var(--text);
2268
2277
  }
2278
+ /* The current crumb already exposes its full text via `truncationTitle` (Topbar.tsx),
2279
+ so it may ellipsize at any width, not only `.is-narrow` — the same rule that used to
2280
+ apply only in the collapsed layout now applies everywhere the row runs out of room. */
2269
2281
  .fd-crumb-current {
2282
+ display: block;
2283
+ min-width: 0;
2284
+ overflow: hidden;
2285
+ text-overflow: ellipsis;
2286
+ white-space: nowrap;
2270
2287
  color: var(--text);
2271
2288
  font-weight: var(--w-semibold);
2272
2289
  }
@@ -2314,23 +2331,12 @@
2314
2331
  }
2315
2332
  /* Narrow Topbar (`is-narrow`, set by Topbar from its own `overflowBreakpoint`, so the
2316
2333
  crumb rules and the overflow menu always switch together): earlier crumbs hide (the
2317
- nav drawer `onMenu` opens still reaches them), and the current crumb truncates with
2318
- an ellipsis instead of spilling its text outside a zero-width box.
2319
- The crumb also grows (`flex: 1 1 auto`) so it, not the row spacer, takes the width
2320
- the collapsed controls free. */
2321
- .fd-topbar.is-narrow .fd-crumb {
2322
- flex: 1 1 auto;
2323
- }
2334
+ nav drawer `onMenu` opens still reaches them). The crumb's grow/shrink and the current
2335
+ crumb's ellipsis are the base `.fd-crumb`/`.fd-crumb-current` rules above — they apply
2336
+ at every width, not only here. */
2324
2337
  .fd-topbar.is-narrow .fd-crumb > *:not(:last-child) {
2325
2338
  display: none;
2326
2339
  }
2327
- .fd-topbar.is-narrow .fd-crumb-current {
2328
- display: block;
2329
- min-width: 0;
2330
- overflow: hidden;
2331
- text-overflow: ellipsis;
2332
- white-space: nowrap;
2333
- }
2334
2340
 
2335
2341
  /* ============ Overlays ============ */
2336
2342
  /* z-index is set inline by Modal.tsx/Drawer.tsx via useOverlayLayer (see Popover.tsx). */