pdfjs-reader-core 0.5.8 → 0.5.10

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
@@ -13325,8 +13325,8 @@ var ACCENT_SOFT = "rgba(176, 74, 26, 0.18)";
13325
13325
  var ACCENT_GLOW = "rgba(176, 74, 26, 0.35)";
13326
13326
  var SERIF = "'Iowan Old Style', 'Palatino Linotype', Palatino, 'Book Antiqua', 'EB Garamond', 'Hoefler Text', Georgia, serif";
13327
13327
  var EASE_OUT_EXPO = [0.22, 1, 0.36, 1];
13328
- var PILL_FONT_CAPS = "clamp(10.5px, 0.55vw + 8.5px, 14.5px)";
13329
- var PILL_FONT_BODY = "clamp(12px, 0.6vw + 10px, 16.5px)";
13328
+ var PILL_FONT_CAPS = "clamp(9px, 0.55vw + 7px, 13px)";
13329
+ var PILL_FONT_BODY = "clamp(10.5px, 0.6vw + 8.5px, 15px)";
13330
13330
  var PILL_FONT_DISPLAY = "clamp(14px, 0.75vw + 12px, 19px)";
13331
13331
  var PILL_MAX_W_CAPS = "clamp(180px, 26vw, 380px)";
13332
13332
  var PILL_MAX_W_BODY = "clamp(200px, 28vw, 440px)";
@@ -13337,8 +13337,8 @@ function resolveMaxPillW(viewportWidthPx) {
13337
13337
  return clamp(0.26 * viewportWidthPx, 180, 380);
13338
13338
  }
13339
13339
  function resolveMaxPillH(viewportWidthPx) {
13340
- const font = clamp(55e-4 * viewportWidthPx + 8.5, 10.5, 14.5);
13341
- return clamp(font * 2.6, 28, 42);
13340
+ const font = clamp(55e-4 * viewportWidthPx + 7, 9, 13);
13341
+ return clamp(font * 2.6, 24, 36);
13342
13342
  }
13343
13343
  function clamp(v, lo, hi) {
13344
13344
  return Math.min(hi, Math.max(lo, v));
@@ -14593,10 +14593,15 @@ 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; longer ones grow in height rather than losing
14598
+ // their tail. `overflowWrap: 'break-word'` respects min-content
14599
+ // sizing so a single overflowing word mid-breaks at a safe
14600
+ // boundary — unlike `anywhere`, which would collapse the pill
14601
+ // to 1-char min width and stack every letter on its own line.
14597
14602
  maxWidth: PILL_MAX_W_BODY,
14598
- overflow: "hidden",
14599
- textOverflow: "ellipsis",
14603
+ whiteSpace: "normal",
14604
+ overflowWrap: "break-word",
14600
14605
  // Warm two-layer shadow (matches GhostReference's palette).
14601
14606
  boxShadow: "0 1px 2px rgba(42, 36, 32, 0.12), 0 8px 18px -6px rgba(42, 36, 32, 0.22)",
14602
14607
  // Internal left accent rule — a 2px terracotta stripe.
@@ -14893,10 +14898,15 @@ function CalloutLabelPill({
14893
14898
  letterSpacing: 0.6,
14894
14899
  textTransform: "uppercase",
14895
14900
  fontWeight: 500,
14896
- whiteSpace: "nowrap",
14901
+ // Wrap instead of truncating. Short labels stay single-line;
14902
+ // longer ones grow taller rather than losing their tail to an
14903
+ // ellipsis. `overflowWrap: 'break-word'` respects min-content
14904
+ // sizing — `anywhere` here caused the pill to collapse to 1-char
14905
+ // width and stack each letter on its own line when the clamped
14906
+ // maxWidth was narrow.
14897
14907
  maxWidth: PILL_MAX_W_CAPS,
14898
- overflow: "hidden",
14899
- textOverflow: "ellipsis",
14908
+ whiteSpace: "normal",
14909
+ overflowWrap: "break-word",
14900
14910
  boxShadow: "0 1px 2px rgba(42, 36, 32, 0.12), 0 8px 18px -6px rgba(42, 36, 32, 0.22)",
14901
14911
  // Accent rule on the "inward" edge (the one closest to the arrow).
14902
14912
  backgroundImage: spec.accentGradient,