style : fix gap & margin & padding

This commit is contained in:
GuillaumeSD
2024-02-25 02:13:06 +01:00
parent 892004f0d0
commit 8d15b7e1a2
15 changed files with 104 additions and 119 deletions

View File

@@ -97,11 +97,12 @@ export const getEvaluationBarValue = (
const cp = bestLine.cp;
const whiteBarPercentage = Math.min(50 + cp / 20, 98);
const label = (cp / 100).toFixed(1);
const pEval = Math.abs(cp) / 100;
const label = pEval.toFixed(1);
if (label.toString().length > 3) {
return { whiteBarPercentage, label: (cp / 100).toFixed(0) };
return { whiteBarPercentage, label: pEval.toFixed(0) };
}
return { whiteBarPercentage, label: (cp / 100).toFixed(1) };
return { whiteBarPercentage, label: pEval.toFixed(1) };
};