@sensiblestats/widget-react 0.31.0 → 0.31.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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @sensiblestats/widget-react
2
2
 
3
+ ## 0.31.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Live monitor fixes from oleycom live testing: hide the score on not-started matches (Odds-tab context line phase guard), wrap long club names to two lines on the match card instead of truncating, and keep the context-line score/badges from wrapping on narrow screens.
8
+
3
9
  ## 0.31.0
4
10
 
5
11
  ### Minor Changes
package/dist/index.cjs CHANGED
@@ -2919,7 +2919,7 @@ var import_jsx_runtime46 = require("react/jsx-runtime");
2919
2919
  function ContextLine({ m, monitor, ui }) {
2920
2920
  return /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)("div", { className: "ss-w-mk-ctx", children: [
2921
2921
  /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(Crest2, { kind: "team", name: m.homeTeamName ?? void 0 }),
2922
- typeof m.homeScore === "number" && /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)("b", { children: [
2922
+ m.phase !== "preMatch" && typeof m.homeScore === "number" && /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)("b", { children: [
2923
2923
  m.homeScore,
2924
2924
  "\u2013",
2925
2925
  m.awayScore
@@ -3735,7 +3735,8 @@ var WIDGET_CSS = `.ss-w-root { all: revert; }
3735
3735
  .ss-w-mon-main { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; }
3736
3736
  .ss-w-mon-side { display: flex; align-items: center; gap: 8px; min-width: 0; }
3737
3737
  .ss-w-mon-side--away { flex-direction: row-reverse; text-align: right; }
3738
- .ss-w-mon-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; font-weight: 700; color: var(--ss-w-ink); }
3738
+ /* long club names (Wolverhampton Wanderers) wrap to two lines instead of truncating mid-word */
3739
+ .ss-w-mon-name { min-width: 0; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.2; font-size: 13px; font-weight: 700; color: var(--ss-w-ink); }
3739
3740
  .ss-w-mon-vs { font-size: 12px; font-weight: 700; color: var(--ss-w-faint); text-transform: uppercase; }
3740
3741
  .ss-w-mon-score { display: flex; align-items: baseline; justify-content: center; font-size: 26px; font-weight: 850; font-variant-numeric: tabular-nums; line-height: 1; white-space: nowrap; color: var(--ss-w-ink); }
3741
3742
  .ss-w-mon-score i { font-style: normal; color: var(--ss-w-faint); font-weight: 500; margin: 0 4px; }
@@ -3764,7 +3765,11 @@ var WIDGET_CSS = `.ss-w-root { all: revert; }
3764
3765
  and the per-market-pin wrapper card (struck price on settlement is a pure CSS hook off its
3765
3766
  [data-settled] attribute -- no separate class on the price element itself). */
3766
3767
  .ss-w-mk-ctx { display: flex; align-items: center; gap: 6px; padding-bottom: 10px; margin-bottom: 10px; border-bottom: 1px solid var(--ss-w-line); }
3767
- .ss-w-mk-ctx-right { display: flex; align-items: center; gap: 6px; margin-left: auto; }
3768
+ /* the score and the trailing badges/pin never shrink or wrap -- only the fixture name truncates */
3769
+ .ss-w-mk-ctx b { flex: none; white-space: nowrap; }
3770
+ /* the context line's fixture name stays single-line (the two-line clamp is for the match card) */
3771
+ .ss-w-mk-ctx .ss-w-mon-name { display: block; white-space: nowrap; text-overflow: ellipsis; }
3772
+ .ss-w-mk-ctx-right { display: flex; align-items: center; gap: 6px; margin-left: auto; flex: none; }
3768
3773
  /* flex:1 keeps the composer pinned to the panel bottom when a tab is empty */
3769
3774
  .ss-w-mon-empty { flex: 1; padding: 24px 16px; text-align: center; font-size: 12.5px; color: var(--ss-w-faint); }
3770
3775
  .ss-w-mon-inslip { display: inline-flex; flex: none; align-items: center; gap: 3px; font-size: 10.5px; font-weight: 700; color: var(--ss-w-pos); }