@danxbot/ui 15.33.0 → 15.33.2

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/index.js CHANGED
@@ -45407,14 +45407,15 @@ function Ej({
45407
45407
  /* Marker for the overlay and visual gates — same reason as the effort
45408
45408
  panel: the popup's own DOM has no selector a probe can name without
45409
45409
  depending on an implementation detail. */
45410
- /* DX-4067 — `w-72` was a fixed width INSIDE the clamped popup, the pattern DX-4061
45411
- fixed on DevToolsPopover: in the popup the panel tracks the width it resolved to
45412
- (`w-full min-w-0`); inline there is no popup to track, so it keeps its own width. */
45410
+ /* DX-4067 — a bare `w-72` is a fixed width inside the clamped popup (the pattern
45411
+ DX-4061 fixed on DevToolsPopover): `max-w-full` keeps the 18rem design width
45412
+ and never exceeds the width the popup resolved to (`w-full` would let a short
45413
+ panel collapse to its content, the popup being shrink-to-fit). */
45413
45414
  /* @__PURE__ */ M(
45414
45415
  "div",
45415
45416
  {
45416
45417
  "data-context-panel": "",
45417
- className: B("flex flex-col gap-3", s ? "w-72" : "w-full min-w-0", s && c),
45418
+ className: B("flex w-72 max-w-full min-w-0 flex-col gap-3", s && c),
45418
45419
  children: [
45419
45420
  /* @__PURE__ */ M("div", { className: "flex flex-col gap-1.5", children: [
45420
45421
  /* @__PURE__ */ M("div", { className: "flex items-baseline justify-between gap-3", children: [
@@ -48181,7 +48182,7 @@ function fX({
48181
48182
  children: /* @__PURE__ */ d(ro, { name: l.name, src: l.avatarUrl, size: "sm" })
48182
48183
  }
48183
48184
  ),
48184
- children: /* @__PURE__ */ M("div", { "data-account-menu-panel": "", className: "flex w-full min-w-0 flex-col gap-1", children: [
48185
+ children: /* @__PURE__ */ M("div", { "data-account-menu-panel": "", className: "flex w-72 max-w-full min-w-0 flex-col gap-1", children: [
48185
48186
  /* @__PURE__ */ M("div", { className: "flex items-center gap-3 px-1 pb-3", children: [
48186
48187
  /* @__PURE__ */ d(ro, { name: l.name, src: l.avatarUrl, size: "md" }),
48187
48188
  /* @__PURE__ */ M("div", { className: "flex min-w-0 flex-col", children: [
@@ -54576,9 +54577,14 @@ function TW({ node: e, context: t }) {
54576
54577
  {
54577
54578
  className: B(
54578
54579
  "font-semibold",
54579
- c ? "whitespace-nowrap text-secondary group-hover:text-primary" : "text-center text-balance",
54580
+ c ? "whitespace-nowrap text-secondary group-hover:text-primary" : "w-max text-center text-balance break-words",
54580
54581
  r ? "text-2xs" : "text-xs",
54581
- u && "rounded-full border border-(--fw-pill-edge) bg-(--fw-pill) px-2.5 py-0.5 text-(--fw-pill-text) shadow-sm",
54582
+ /* DX-4070: `w-max` + the role's `max-w` makes the label's own width its preferred one, capped, so a node near
54583
+ the plane's edge (whose absolute slot has little room to its right) wraps at word breaks inside the cap instead
54584
+ of squeezing to a letter per line. A pill label wraps to several lines at 72/32 max width. `rounded-full` on a tall box is a radius of
54585
+ half its height, so the wrapped lines' corners poke through the curve; `rounded-xl` is the same full pill on a
54586
+ one-line label (the radius clamps to half the height) and a fixed, text-safe corner on a multi-line one. */
54587
+ u && "rounded-xl border border-(--fw-pill-edge) bg-(--fw-pill) px-3 py-1 text-(--fw-pill-text) shadow-sm",
54582
54588
  a && (r ? "max-w-32" : "max-w-72"),
54583
54589
  n === "ring" && (r ? "max-w-20" : "max-w-32"),
54584
54590
  n === "ring" && !u && (o ? "text-primary" : "text-secondary")