@four-leaf-studios/rl-overlay 1.0.3 → 1.0.4
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.js +3 -3
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +3 -3
- package/dist/index.esm.js.map +1 -1
- package/dist/types/ScoreboardSeriesBox.d.ts +2 -1
- package/package.json +1 -1
- package/src/Scoreboard.tsx +2 -1
- package/src/ScoreboardSeriesBox.tsx +5 -4
- package/test-overlay/public/mock-css.css +75 -112
package/dist/index.cjs.js
CHANGED
|
@@ -10371,9 +10371,9 @@ var ScoreboardSeriesBoxComponent = function (_a) {
|
|
|
10371
10371
|
var teamSeriesScore = Number(team.series_score) || 0;
|
|
10372
10372
|
var pointsCount = Math.ceil(bestOf / 2);
|
|
10373
10373
|
var points = Array.from({ length: pointsCount }, function (_, index) { return index; });
|
|
10374
|
-
var
|
|
10375
|
-
var modifier =
|
|
10376
|
-
var teamColor = ((_b = team.color) === null || _b === void 0 ? void 0 : _b.primary_color) || (
|
|
10374
|
+
var isLeftTeam = team.id === "0";
|
|
10375
|
+
var modifier = isLeftTeam ? "left" : "right";
|
|
10376
|
+
var teamColor = ((_b = team.color) === null || _b === void 0 ? void 0 : _b.primary_color) || (isLeftTeam ? "#0052cc" : "#ff6600");
|
|
10377
10377
|
return (React.createElement("div", { className: "series_box ".concat(modifier, "_series_box"), style: { "--team-color": teamColor } }, points.map(function (index) {
|
|
10378
10378
|
var pointClass = index < teamSeriesScore
|
|
10379
10379
|
? "series_score_box_point ".concat(modifier, "_series_score_box_point")
|