@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.esm.js
CHANGED
|
@@ -10351,9 +10351,9 @@ var ScoreboardSeriesBoxComponent = function (_a) {
|
|
|
10351
10351
|
var teamSeriesScore = Number(team.series_score) || 0;
|
|
10352
10352
|
var pointsCount = Math.ceil(bestOf / 2);
|
|
10353
10353
|
var points = Array.from({ length: pointsCount }, function (_, index) { return index; });
|
|
10354
|
-
var
|
|
10355
|
-
var modifier =
|
|
10356
|
-
var teamColor = ((_b = team.color) === null || _b === void 0 ? void 0 : _b.primary_color) || (
|
|
10354
|
+
var isLeftTeam = team.id === "0";
|
|
10355
|
+
var modifier = isLeftTeam ? "left" : "right";
|
|
10356
|
+
var teamColor = ((_b = team.color) === null || _b === void 0 ? void 0 : _b.primary_color) || (isLeftTeam ? "#0052cc" : "#ff6600");
|
|
10357
10357
|
return (React__default.createElement("div", { className: "series_box ".concat(modifier, "_series_box"), style: { "--team-color": teamColor } }, points.map(function (index) {
|
|
10358
10358
|
var pointClass = index < teamSeriesScore
|
|
10359
10359
|
? "series_score_box_point ".concat(modifier, "_series_score_box_point")
|