assessmentsAverage: Minor WEIGHT label styling fixes

This commit is contained in:
Jaxon Lewis-Wilson
2026-04-27 00:28:51 +08:00
parent 01cd5d1428
commit f7d9199500
@@ -113,17 +113,14 @@ function createWeightLabel(
? `${Number(weighting) % 1 === 0 ? Number(weighting) : weighting}%` ? `${Number(weighting) % 1 === 0 ? Number(weighting) : weighting}%`
: "N/A"; : "N/A";
} }
// Stack weight under Max/native stats — absolute right:0 overlapped the max column (#414).
statsContainer.style.display = "flex"; statsContainer.style.display = "flex";
statsContainer.style.flexDirection = "column"; statsContainer.style.alignItems = "center";
statsContainer.style.alignItems = "flex-end"; statsContainer.style.justifyContent = "space-between";
statsContainer.style.gap = "2px"; statsContainer.style.width = "100%";
statsContainer.style.justifyContent = "center";
weightLabel.style.position = "relative"; weightLabel.style.flex = "none";
weightLabel.style.inset = "unset"; weightLabel.style.width = "fit-content";
weightLabel.style.transform = "none";
statsContainer.appendChild(weightLabel); statsContainer.appendChild(weightLabel);
} }