Public Access
Fix Pace of Aging scale labels
This commit is contained in:
1 parent
5ce41c1fb9
commit
bf75213f29
1 file changed
+3
-3
@@ -850,7 +850,7 @@ function HealthspanOrb({ healthspan }: { healthspan: ReturnType<typeof calculate
|
||||
}
|
||||
|
||||
function PaceScale({ value }: { value: number | null }) {
|
||||
const normalized = value === null ? 50 : clamp(((value - 0.5) / 1) * 50, 0, 100);
|
||||
const normalized = value === null ? 50 : clamp(((value - 0.5) / 1) * 100, 0, 100);
|
||||
|
||||
return (
|
||||
<div className="mt-3">
|
||||
@@ -871,9 +871,9 @@ function PaceScale({ value }: { value: number | null }) {
|
||||
/>
|
||||
</div>
|
||||
<div className="mt-1 flex justify-between text-[11px] font-semibold text-zinc-600">
|
||||
<span>-1.0x</span>
|
||||
<span>0.5x</span>
|
||||
<span>1.0x</span>
|
||||
<span>3.0x</span>
|
||||
<span>1.5x</span>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user