@danxbot/ui 15.33.0 → 15.33.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/index.js CHANGED
@@ -54576,9 +54576,14 @@ function TW({ node: e, context: t }) {
54576
54576
  {
54577
54577
  className: B(
54578
54578
  "font-semibold",
54579
- c ? "whitespace-nowrap text-secondary group-hover:text-primary" : "text-center text-balance",
54579
+ c ? "whitespace-nowrap text-secondary group-hover:text-primary" : "w-max text-center text-balance break-words",
54580
54580
  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",
54581
+ /* DX-4070: `w-max` + the role's `max-w` makes the label's own width its preferred one, capped, so a node near
54582
+ the plane's edge (whose absolute slot has little room to its right) wraps at word breaks inside the cap instead
54583
+ 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
54584
+ half its height, so the wrapped lines' corners poke through the curve; `rounded-xl` is the same full pill on a
54585
+ one-line label (the radius clamps to half the height) and a fixed, text-safe corner on a multi-line one. */
54586
+ u && "rounded-xl border border-(--fw-pill-edge) bg-(--fw-pill) px-3 py-1 text-(--fw-pill-text) shadow-sm",
54582
54587
  a && (r ? "max-w-32" : "max-w-72"),
54583
54588
  n === "ring" && (r ? "max-w-20" : "max-w-32"),
54584
54589
  n === "ring" && !u && (o ? "text-primary" : "text-secondary")