pdfjs-reader-core 0.5.8 → 0.5.9

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.cjs CHANGED
@@ -14593,10 +14593,14 @@ function StickyLabel({ screenAnchor, action }) {
14593
14593
  letterSpacing: 0.6,
14594
14594
  textTransform: "uppercase",
14595
14595
  fontWeight: 500,
14596
- whiteSpace: "nowrap",
14596
+ // Wrap instead of truncating with an ellipsis. Short labels stay
14597
+ // single-line naturally; longer ones grow in height rather than
14598
+ // losing their tail. `overflowWrap: 'anywhere'` keeps a stray
14599
+ // long word from pushing the pill past `maxWidth` (normal word
14600
+ // breaking stops at whitespace and can't break inside words).
14597
14601
  maxWidth: PILL_MAX_W_BODY,
14598
- overflow: "hidden",
14599
- textOverflow: "ellipsis",
14602
+ whiteSpace: "normal",
14603
+ overflowWrap: "anywhere",
14600
14604
  // Warm two-layer shadow (matches GhostReference's palette).
14601
14605
  boxShadow: "0 1px 2px rgba(42, 36, 32, 0.12), 0 8px 18px -6px rgba(42, 36, 32, 0.22)",
14602
14606
  // Internal left accent rule — a 2px terracotta stripe.
@@ -14893,10 +14897,13 @@ function CalloutLabelPill({
14893
14897
  letterSpacing: 0.6,
14894
14898
  textTransform: "uppercase",
14895
14899
  fontWeight: 500,
14896
- whiteSpace: "nowrap",
14900
+ // Wrap instead of truncating. Short labels stay single-line;
14901
+ // longer ones grow taller rather than losing their tail to an
14902
+ // ellipsis. `overflowWrap: 'anywhere'` guards against a stray
14903
+ // long word pushing the pill past `maxWidth`.
14897
14904
  maxWidth: PILL_MAX_W_CAPS,
14898
- overflow: "hidden",
14899
- textOverflow: "ellipsis",
14905
+ whiteSpace: "normal",
14906
+ overflowWrap: "anywhere",
14900
14907
  boxShadow: "0 1px 2px rgba(42, 36, 32, 0.12), 0 8px 18px -6px rgba(42, 36, 32, 0.22)",
14901
14908
  // Accent rule on the "inward" edge (the one closest to the arrow).
14902
14909
  backgroundImage: spec.accentGradient,