@sensiblestats/widget-react 0.136.0 → 0.137.0

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/styles.css CHANGED
@@ -594,7 +594,9 @@
594
594
  .ss-w-mo-stat { font-size: 12px; color: var(--ss-w-ink); background: color-mix(in srgb, var(--ss-w-accent) 9%, var(--ss-w-panel)); border-radius: 8px; padding: 7px 9px; }
595
595
  .ss-w-mo-row { display: flex; align-items: center; gap: 10px; padding: 4px 0; border-bottom: 1px dashed var(--ss-w-line); }
596
596
  .ss-w-mo-row:last-child { border-bottom: none; }
597
- .ss-w-mo-sel { font-size: 12.5px; font-weight: 600; color: var(--ss-w-ink); flex: 1; min-width: 0; }
597
+ /* min-content, not 0: a long slip label (it-IT "Aggiungi alla schedina") otherwise squeezes the
598
+ label narrower than one word and the name runs into the price. The slip button wraps instead. */
599
+ .ss-w-mo-sel { font-size: 12.5px; font-weight: 600; color: var(--ss-w-ink); flex: 1; min-width: min-content; }
598
600
  .ss-w-mo-price { margin-left: auto; font-family: ui-monospace, monospace; font-variant-numeric: tabular-nums; font-size: 14px; font-weight: 700; color: var(--ss-w-accent); }
599
601
  /* Movement: BOTH directions share --ss-w-faint on purpose. Green-good/red-bad would frame a
600
602
  shortening price as a discount, which inverts what it actually means for the bettor. */
@@ -605,7 +607,8 @@
605
607
  a flex row, and must NOT follow the badge into the insight card's odds column. */
606
608
  .ss-w-mo-row .ss-w-move { margin-left: auto; }
607
609
  .ss-w-mo-row .ss-w-move + .ss-w-mo-price { margin-left: 0; }
608
- .ss-w-mo-row .ss-w-slip { margin: 0; flex: none; }
610
+ .ss-w-mo-row .ss-w-slip { margin: 0; flex: 0 1 auto; min-width: 0; }
611
+ .ss-w-mo-row .ss-w-slip-btn { white-space: normal; text-align: center; }
609
612
  .ss-w-mo-foot { display: flex; align-items: center; gap: 8px; font-size: 10.5px; color: var(--ss-w-faint); }
610
613
  .ss-w-allmk-wrap { position: relative; display: inline-flex; flex: none; margin-left: auto; }
611
614
  .ss-w-allmk-wrap--chip { margin-left: 0; }
@@ -1330,9 +1333,6 @@
1330
1333
  /* The dot sits on the tab's corner and takes no width: a poll landing late must not push the last tab out of a strip that already fits to the pixel */
1331
1334
  .ss-w-tab { position: relative; }
1332
1335
  .ss-w-tab-dot { position: absolute; top: 4px; right: 2px; width: 6px; height: 6px; border-radius: 50%; background: var(--ss-w-neg); }
1333
- .ss-w-tab-star { display: none; font-size: 15px; line-height: 1; }
1334
- .ss-w-tab[data-compact] .ss-w-tab-star { display: inline; }
1335
- .ss-w-tab[data-compact] .ss-w-tab-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
1336
1336
  .ss-w-sportchips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px 3px; }
1337
1337
  .ss-w-sportchips::-webkit-scrollbar { display: none; }
1338
1338
  .ss-w-sportchip { display: inline-flex; align-items: center; gap: 5px; flex: none; min-height: 32px; padding: 4px 11px; font: inherit; font-size: 12.5px; font-weight: 620; white-space: nowrap; color: var(--ss-w-ink); background: var(--ss-w-panel); border: 1px solid var(--ss-w-line); border-radius: 999px; cursor: pointer; }
@@ -1525,7 +1525,9 @@
1525
1525
  }
1526
1526
  .ss-w-lg-showall { align-self: flex-start; min-height: 28px; background: none; border: none; font: inherit; font-size: 11px; font-weight: 700; color: var(--ss-w-faint); cursor: pointer; padding: 4px 2px 0; }
1527
1527
  .ss-w-lg-showall:focus-visible { outline: 2px solid var(--ss-w-accent); outline-offset: -2px; }
1528
- .ss-w-fav { gap: 14px; }
1528
+ /* The sheet's body scrolls, so the panel inside is a plain column. A set height keeps the sheet still while search results come and go. */
1529
+ .ss-w-fav-sheet > .ss-w-tool { height: 85%; }
1530
+ .ss-w-fav { display: flex; flex-direction: column; gap: 14px; }
1529
1531
  .ss-w-fav-saved { margin: 0; display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ss-w-faint); }
1530
1532
  .ss-w-fav-saved::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ss-w-accent); flex: none; }
1531
1533
  .ss-w-fav-saved--browser::before { background: var(--ss-w-warn); }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sensiblestats/widget-react",
3
- "version": "0.136.0",
3
+ "version": "0.137.0",
4
4
  "description": "Embeddable SensibleStats chat widget for React.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -39,7 +39,7 @@
39
39
  "prepublishOnly": "yarn build"
40
40
  },
41
41
  "dependencies": {
42
- "@sensiblestats/widget-sdk": "^0.98.0",
42
+ "@sensiblestats/widget-sdk": "^0.99.0",
43
43
  "react-markdown": "^9.0.1",
44
44
  "remark-gfm": "^4.0.0"
45
45
  },