@sensiblestats/widget-react 0.124.2 → 0.124.3

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.124.3
4
+
5
+ ### Patch Changes
6
+
7
+ - Fit chat stats tables to the panel: cells wrap, the table fills the panel width and tightens type and padding in a narrow panel, so a fifth column such as "Break points" no longer scrolls off. Scrolling stays as the last resort.
8
+
3
9
  ## 0.124.2
4
10
 
5
11
  ### Patch Changes
package/dist/index.cjs CHANGED
@@ -1217,7 +1217,7 @@ function parseOddsFormat(value) {
1217
1217
  }
1218
1218
 
1219
1219
  // src/version.generated.ts
1220
- var WIDGET_REACT_VERSION = "0.124.2";
1220
+ var WIDGET_REACT_VERSION = "0.124.3";
1221
1221
 
1222
1222
  // src/config.ts
1223
1223
  function hostTag(cfg) {
@@ -17352,10 +17352,15 @@ var WIDGET_CSS = `.ss-w-root { all: revert; }
17352
17352
  .ss-w-md-ol { list-style: decimal outside; padding-left: 18px; }
17353
17353
  .ss-w-md-ul li::marker, .ss-w-md-ol li::marker { color: var(--ss-w-accent); }
17354
17354
  .ss-w-md-link { color: var(--ss-w-accent); text-decoration: underline; }
17355
- .ss-w-table-wrap { overflow-x: auto; max-width: 100%; -webkit-overflow-scrolling: touch; }
17356
- .ss-w-md-table { border-collapse: collapse; width: max-content; min-width: 100%; font-variant-numeric: tabular-nums; }
17357
- .ss-w-md-table td, .ss-w-md-table th { border: 1px solid var(--ss-w-line); padding: 4px 8px; text-align: left; white-space: nowrap; }
17355
+ .ss-w-table-wrap { overflow-x: auto; max-width: 100%; -webkit-overflow-scrolling: touch; container-type: inline-size; }
17356
+ .ss-w-md-table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
17357
+ .ss-w-md-table td, .ss-w-md-table th { border: 1px solid var(--ss-w-line); padding: 4px 8px; text-align: left; overflow-wrap: break-word; }
17358
+ .ss-w-md-table td + td { white-space: nowrap; }
17358
17359
  .ss-w-md-table th { background: color-mix(in srgb, var(--ss-w-accent) 12%, var(--ss-w-panel)); font-weight: 700; }
17360
+ @container (max-width: 400px) {
17361
+ .ss-w-md-table { font-size: 12px; }
17362
+ .ss-w-md-table td, .ss-w-md-table th { padding: 3px 5px; }
17363
+ }
17359
17364
  .ss-w-md-table tbody tr:nth-child(even) { background: var(--ss-w-bubble); }
17360
17365
  .ss-w-md-code { background: var(--ss-w-bubble); border-radius: 5px; padding: 1px 5px; font-family: ui-monospace, monospace; }
17361
17366