@sensiblestats/widget-react 0.107.0 → 0.107.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.107.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Live match stat bars fill the whole width, with no grey gap between home and away.
8
+
3
9
  ## 0.107.0
4
10
 
5
11
  ### Minor Changes
package/dist/index.cjs CHANGED
@@ -1288,7 +1288,7 @@ function isEnglishLocale(locale) {
1288
1288
  }
1289
1289
 
1290
1290
  // src/version.generated.ts
1291
- var WIDGET_REACT_VERSION = "0.107.0";
1291
+ var WIDGET_REACT_VERSION = "0.107.1";
1292
1292
 
1293
1293
  // src/config.ts
1294
1294
  function normalizeUi(cfg) {
@@ -8278,9 +8278,7 @@ function MonitorMatchCard({ match, promotedPins, monitor, ui, slip, onAsk }) {
8278
8278
  ] }),
8279
8279
  live && match.facts && match.facts.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(LiveFactBlock, { facts: match.facts, matchId: match.matchId, ui, slip, onAsk }),
8280
8280
  /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("div", { className: "ss-w-mon-stats", children: orderedRows.map((row) => {
8281
- const total = row.homeNum + row.awayNum;
8282
- const homePct = total > 0 ? row.homeNum / total * 75 : 0;
8283
- const awayPct = total > 0 ? row.awayNum / total * 75 : 0;
8281
+ const { home, away } = splitWidths2(row.homeNum, row.awayNum);
8284
8282
  const promoted = isPromoted(row, promotedPins);
8285
8283
  const selection = chipSelection(row.market, match.matchId, slip.conversationId);
8286
8284
  return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("div", { className: promoted ? "ss-w-mon-stat ss-w-mon-pstrip" : "ss-w-mon-stat", children: [
@@ -8290,8 +8288,8 @@ function MonitorMatchCard({ match, promotedPins, monitor, ui, slip, onAsk }) {
8290
8288
  /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("span", { className: "ss-w-mon-stat-v ss-w-mon-stat-v--away", children: row.awayValue })
8291
8289
  ] }),
8292
8290
  /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("div", { className: "ss-w-mon-bar", children: [
8293
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("b", { className: "ss-w-mon-bar-home", style: { width: `${homePct}%` } }),
8294
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("i", { className: "ss-w-mon-bar-away", style: { width: `${awayPct}%` } })
8291
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("b", { className: "ss-w-mon-bar-home", style: { width: home } }),
8292
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("i", { className: "ss-w-mon-bar-away", style: { width: away } })
8295
8293
  ] }),
8296
8294
  row.market && !row.market.isSuspended && /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("div", { className: promoted ? "ss-w-mon-stat-mkt ss-w-mon-mkt" : "ss-w-mon-stat-mkt", children: [
8297
8295
  /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("span", { children: [